Skip to content

Instantly share code, notes, and snippets.

@kanzitelli
Created November 11, 2017 03:13
Show Gist options
  • Save kanzitelli/7bea7d629bbc0ec4f10cfb85a38b4ee8 to your computer and use it in GitHub Desktop.
Save kanzitelli/7bea7d629bbc0ec4f10cfb85a38b4ee8 to your computer and use it in GitHub Desktop.
list_of_traded_corps = symbols.loc[:, ['NASDAQ Symbol', 'Security Name', 'Listing Exchange']]
listing_exchange = {
'A': 'NYSE MKT',
'N': 'New York Stock Exchange (NYSE)',
'P': 'NYSE ARCA',
'Q': 'Q - NASDAQ?', # not sure about this one
'V': 'Investors\' Exchange, LLC (IEXG)',
'Z': 'BATS Global Markets (BATS)'
}
list_of_traded_corps['Listing Exchange'] = list_of_traded_corps['Listing Exchange'].apply(lambda c: listing_exchange[c])
list_of_traded_corps.head()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment