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

pyplot + pandas displaying graph outside a notebook #1

Open
gbowerman opened this issue Jul 6, 2017 · 0 comments
Open

pyplot + pandas displaying graph outside a notebook #1

gbowerman opened this issue Jul 6, 2017 · 0 comments

Comments

@gbowerman
Copy link

Hi @klq, figured out why I couldn’t display pyplot graphs of pandas data outside a notebook..
I was missing the pyplot.show() command – it’s not needed in a notebook but is needed in a standalone Python program.
E.g. this works..

import pandas as pd
import matplotlib.pyplot as plt

df = pd.read_csv('./data/alltime_movies200_clean.csv')
plt.plot(df['domestic total gross'])
plt.show()

Thanks again for an excellent session. You can close this, just an FYI.

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

1 participant