Prophet any Stock in Seconds

Forecast Bitcoin with No Code in Google Colab

Winston Robson
Dropout Analytics

--

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;

--

--

Winston Robson
Dropout Analytics

https://gumdropsteve.github.io/blog — “Energy may be likened to the bending of a crossbow, decision to the releasing of a trigger.”