Prophet any Stock in Seconds
Forecast Bitcoin with No Code in Google Colab
Published in
2 min readNov 14, 2020
Install yfinance
With the Yahoo! Finance market data downloader (yfinance), we can pull historical data on virtually any stock with a single line of code.
This package is already installed in Google Colab, if you are following along locally, you can find installation instructions in the Notebook.
From there, simply import the library, and pull a .Ticker()
.
Pull & Prep Data
Let’s do the New York Times Company;
That outputs a yfinance.Ticker object, which holds historical $NYT data accessible with .history()
. Setting period=’max’
will return all data;