Skip to content

Instantly share code, notes, and snippets.

@shashankvemuri
Last active September 15, 2020 02:17
Show Gist options
  • Save shashankvemuri/ee33f9daae70dfbb08dbe72a8d32b26f to your computer and use it in GitHub Desktop.
Save shashankvemuri/ee33f9daae70dfbb08dbe72a8d32b26f to your computer and use it in GitHub Desktop.
Intro
import numpy as np
import warnings
from pandas_datareader import data as pdr
import yfinance as yf
import datetime as dt
from yahoo_fin import stock_info as si
import pandas as pd
pd.set_option('display.max_rows', None)
warnings.filterwarnings("ignore")
yf.pdr_override()
num_of_years = 1
start = dt.date.today() - dt.timedelta(days = int(365.25*num_of_years))
end = dt.date.today()
tickers = si.tickers_dow()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment