October 2018
Beginner to intermediate
676 pages
18h 30m
English
Instead of reading the Google Stock Price data from a .csv or .xlsx file, there are standard APIs such as fix_yahoo_finance, pandas_datareader that can read data directly from open databases.
Here, we will show an example of using fix_yahoo_finance:
Import the required libraries:
import matplotlib.pyplot as pltimport pandas as pdimport fix_yahoo_finance as yf
data = yf.download('AAPL','2017-10-01','2018-01-01')
Read now
Unlock full access