jum223 / FrontToBack

Final Project Repo
https://russiaukrainewarindustryreturns.streamlit.app
0 stars 0 forks source link

Proposal feedback #1

Open donbowen opened 1 year ago

donbowen commented 1 year ago

A scattering of thoughts:

# something LIKE but not actually
dl = Downloader("/Ukraine_filings")
for cik in ciks_in_our_industries: # you should get the correct CIK for firms in your industries
    dl.get('10-K', cik, query="Ukraine")

dl = Downloader("/Russia_filings")
for cik in ciks_in_our_industries: # you should get the correct CIK for firms in your industries
    dl.get('10-K', cik, query="Russia_filings")

# now count .. something LIKE but not actually
for industry in industries:
    for cik in industry_ciks['industry']:
        10k_counts[(cik,industry,'ukraine')] += count_files_in_directory('Ukraine_filings/{cik}/**.txt')
        10k_counts[(cik,industry,'russia')]   += count_files_in_directory('Russia_filings/{cik}/**.txt')

# convert that to a dataframe obj and merge with your main dataframe
donbowen commented 1 year ago

@jum223 @LucaF20 @mfs323