Skip to content

Instantly share code, notes, and snippets.

@fnneves
Created May 31, 2022 01:25
Show Gist options
  • Save fnneves/c1b3d9feff385d04f59586fd2ef9c4e3 to your computer and use it in GitHub Desktop.
Save fnneves/c1b3d9feff385d04f59586fd2ef9c4e3 to your computer and use it in GitHub Desktop.
#### READ THE DATA
stocks = ['AMZN','NFLX', 'SBUX', 'DIS', 'MSFT', 'TSLA']
dict_income = {}
dict_balsheet = {}
dict_financials = {}
dict_q_income = {}
dict_q_balsheet = {}
dict_q_financials = {}
dict_price = {}
dict_overview = {}
for ticker in stocks:
dict_balsheet[ticker] = pd.read_csv(f'../outputs/fin_statements/dict_balsheet_{ticker}.csv', index_col='Date')
dict_income[ticker] = pd.read_csv(f'../outputs/fin_statements/dict_income_{ticker}.csv', index_col='Date')
dict_financials[ticker] = pd.read_csv(f'../outputs/fin_statements/dict_financials_{ticker}.csv', index_col='Date')
dict_q_balsheet[ticker] = pd.read_csv(f'../outputs/fin_statements/dict_q_balsheet_{ticker}.csv', index_col='Date')
dict_q_income[ticker] = pd.read_csv(f'../outputs/fin_statements/dict_q_income_{ticker}.csv', index_col='Date')
dict_q_financials[ticker] = pd.read_csv(f'../outputs/fin_statements/dict_q_financials_{ticker}.csv', index_col='Date')
dict_price[ticker] = pd.read_csv(f'../outputs/fin_statements/dict_price_{ticker}.csv', index_col='Date')
dict_overview[ticker] = pd.read_csv(f'../outputs/fin_statements/dict_overview_{ticker}.csv')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment