Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyError #11

Open
ImportSJC opened this issue Aug 3, 2020 · 1 comment
Open

KeyError #11

ImportSJC opened this issue Aug 3, 2020 · 1 comment

Comments

@ImportSJC
Copy link

In the last cell on the following line I get a KeyError:

plot_senator_growth(senator_tx_growth['Angus S King, Jr.'])

KeyError                                  Traceback (most recent call last)
<ipython-input-15-158f4a2ee1d2> in <module>
----> 1 plot_senator_growth(senator_tx_growth['Angus S King, Jr.'])

KeyError: 'Angus S King, Jr.'

Likely due to the punctuation in the name, the comma and the period. Probably should do some cleaning on the names.

@neelsomani
Copy link
Owner

Would it be possible for you to print the keys for the dictionary senator_tx_growth? I don't think the comma or period should make a difference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants