File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ The figure below shows the price of cotton in USD since the start of 2016.
60
60
``` {code-cell} ipython3
61
61
:tags: [hide-input, hide-output]
62
62
63
- s = yf.download('CT=F', '2016-1-1', '2023-4-1')['Adj Close']
63
+ s = yf.download('CT=F', '2016-1-1', '2023-4-1')['Close']
64
64
```
65
65
66
66
``` {code-cell} ipython3
Original file line number Diff line number Diff line change @@ -197,7 +197,7 @@ mystnb:
197
197
caption: Daily Amazon returns
198
198
name: dailyreturns-amzn
199
199
---
200
- s = data['Adj Close']
200
+ s = data['Close']
201
201
r = s.pct_change()
202
202
203
203
fig, ax = plt.subplots()
@@ -229,7 +229,7 @@ mystnb:
229
229
caption: Daily Bitcoin returns
230
230
name: dailyreturns-btc
231
231
---
232
- s = data['Adj Close']
232
+ s = data['Close']
233
233
r = s.pct_change()
234
234
235
235
fig, ax = plt.subplots()
You can’t perform that action at this time.
0 commit comments