We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a454f5d commit a80c4a1Copy full SHA for a80c4a1
lectures/heavy_tails.md
@@ -4,7 +4,7 @@ jupytext:
4
extension: .md
5
format_name: myst
6
format_version: 0.13
7
- jupytext_version: 1.14.5
+ jupytext_version: 1.16.1
8
kernelspec:
9
display_name: Python 3 (ipykernel)
10
language: python
@@ -169,7 +169,12 @@ This equates to daily returns if we set dividends aside.
169
The code below produces the desired plot using Yahoo financial data via the `yfinance` library.
170
171
```{code-cell} ipython3
172
-s = yf.download('AMZN', '2015-1-1', '2022-7-1')['Adj Close']
+:tags: [hide-output]
173
+data = yf.download('AMZN', '2015-1-1', '2022-7-1')
174
+```
175
+
176
+```{code-cell} ipython3
177
+s = data['Adj Close']
178
r = s.pct_change()
179
180
fig, ax = plt.subplots()
0 commit comments