mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-27 12:40:35 +00:00
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:
4
website/content/api/_index.md
vendored
4
website/content/api/_index.md
vendored
@@ -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()
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user