Skip to content

Commit 2d25233

Browse files
committed
migrate Adj Close to Close
1 parent 6440f99 commit 2d25233

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lectures/commod_price.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ The figure below shows the price of cotton in USD since the start of 2016.
6060
```{code-cell} ipython3
6161
:tags: [hide-input, hide-output]
6262
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']
6464
```
6565

6666
```{code-cell} ipython3

lectures/heavy_tails.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ mystnb:
197197
caption: Daily Amazon returns
198198
name: dailyreturns-amzn
199199
---
200-
s = data['Adj Close']
200+
s = data['Close']
201201
r = s.pct_change()
202202
203203
fig, ax = plt.subplots()
@@ -229,7 +229,7 @@ mystnb:
229229
caption: Daily Bitcoin returns
230230
name: dailyreturns-btc
231231
---
232-
s = data['Adj Close']
232+
s = data['Close']
233233
r = s.pct_change()
234234
235235
fig, ax = plt.subplots()

0 commit comments

Comments
 (0)