Skip to content

Commit 45901d5

Browse files
authored
fixed writer.sheets['Recommended Trades'] issue
1 parent 95b59b9 commit 45901d5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

finished_files/001_equal_weight_S&P_500.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,12 +375,12 @@
375375
"source": [
376376
"### Applying the Formats to the Columns of Our `.xlsx` File\n",
377377
"\n",
378-
"We can use the `set_column` method applied to the `writer.book` object to apply formats to specific columns of our spreadsheets.\n",
378+
"We can use the `set_column` method applied to the `writer.sheets['Recommended Trades']` object to apply formats to specific columns of our spreadsheets.\n",
379379
"\n",
380380
"Here's an example:\n",
381381
"\n",
382382
"```python\n",
383-
"writer.book.set_column('B:B', #This tells the method to apply the format to column B\n",
383+
"writer.sheets['Recommended Trades'].set_column('B:B', #This tells the method to apply the format to column B\n",
384384
" 18, #This tells the method to apply a column width of 18 pixels\n",
385385
" string_template #This applies the format 'string_template' to the column\n",
386386
" )\n",

0 commit comments

Comments
 (0)