Created
September 7, 2019 16:53
-
-
Save julian-west/c8b29048202ee66f1130a4d52292aea5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aliases = pd.read_csv("etf_names.csv",usecols=['Code','ETF Alias']) | |
#example aliases | |
display(aliases) | |
#convert to dictionary | |
aliases = dict(zip(aliases['Code'],aliases['ETF Alias'])) | |
#rename columns from ETF codes to aliases | |
raw_asset_prices_df = raw_asset_prices_df.rename(columns=aliases) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment