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

Missing import statement #1

Open
dinafuku opened this issue Nov 2, 2023 · 2 comments
Open

Missing import statement #1

dinafuku opened this issue Nov 2, 2023 · 2 comments

Comments

@dinafuku
Copy link

dinafuku commented Nov 2, 2023

Screenshot 2023-11-02 at 11 23 58 AM

Missing plt import statement: import matplotlib.pyplot as plt

Generated python code would not run because the plt import statement is missing.

@dinafuku
Copy link
Author

dinafuku commented Nov 4, 2023

After further testing, the incorrect parentheses involving the ggplot function is what caused the import statement error. There is not direct issue with the library imports but the "plt =" line of code should not include plt.save as well.

Corrected code:
plt = (ggplot(df,aes...
separate line
plt.save('plot.png')

@TylerKay
Copy link
Collaborator

TylerKay commented Nov 8, 2023

Thank you @dinafuku for catching that. We will fix the incorrect parenthesis placement issue.

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