fixed typos in example for Jupyter notebook (#2687)

Co-authored-by: minhhoang1023 <40023817+minhhoang1023@users.noreply.github.com>
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
This commit is contained in:
Tassilo Klein
2022-10-05 08:50:53 +02:00
committed by GitHub
parent 5c2394d63b
commit bb00b1bd2b

View File

@@ -136,10 +136,10 @@ from openbb_terminal.api import openbb
# Fetches data from the api
gme = openbb.stocks.load("gme")
# Calculates logarithmic returns
gme["Log Returns"] = np.log(gme["Adj Close"]/gme["Adjusted Close"].shift(1))
gme["Log Returns"] = np.log(gme["Adj Close"]/gme["Adj Close"].shift(1))
# Plots the return distributions
gme["Log Returns"].hist(bins=1000)
plt.thight_layout()
plt.tight_layout()
plt.show()
```