Skip to content

Instantly share code, notes, and snippets.

@git-shogg
Created February 6, 2023 10:00
Show Gist options
  • Save git-shogg/a309c79dae6378b31fc9cbe8bb3e8b34 to your computer and use it in GitHub Desktop.
Save git-shogg/a309c79dae6378b31fc9cbe8bb3e8b34 to your computer and use it in GitHub Desktop.
# --- Map tickers into the quarterly holding dataframes ---
all_this_qtr_holdings['Ticker'] = all_this_qtr_holdings['CUSIP'].map(dict(cusip_mappings))
all_last_qtr_holdings['Ticker'] = all_last_qtr_holdings['CUSIP'].map(dict(cusip_mappings))
all_this_qtr_holdings['Ticker'] = all_this_qtr_holdings['Ticker'].fillna('N/A')
all_last_qtr_holdings['Ticker'] = all_last_qtr_holdings['Ticker'].fillna('N/A')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment