Skip to content

Commit 95b59b9

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

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

starter_files/001_equal_weight_S&P_500.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,12 +254,12 @@
254254
"source": [
255255
"### Applying the Formats to the Columns of Our `.xlsx` File\n",
256256
"\n",
257-
"We can use the `set_column` method applied to the `writer.book` object to apply formats to specific columns of our spreadsheets.\n",
257+
"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",
258258
"\n",
259259
"Here's an example:\n",
260260
"\n",
261261
"```python\n",
262-
"writer.book.set_column('B:B', #This tells the method to apply the format to column B\n",
262+
"writer.sheets['Recommended Trades'].set_column('B:B', #This tells the method to apply the format to column B\n",
263263
" 18, #This tells the method to apply a column width of 18 pixels\n",
264264
" string_template #This applies the format 'string_template' to the column\n",
265265
" )\n",

0 commit comments

Comments
 (0)