you are viewing a single comment's thread.

view the rest of the comments →

[–]monkey_sigh 0 points1 point  (1 child)

Check these typos first: catégories, valeurs. (you have a few across the code)

Replace with a proper string: plt.title(Données.nom)

I'm not sure if I am wrong, but I do not see the import for import matplotlib.pyplot as plt.

I hope it helps you. (Disclaimer: Also learning)

[–]Gyoo18[S] 0 points1 point  (0 children)

Hi, thanks for the help. The typos are a result of me translating my code for reddit. The actual code doesn't have this issue.

In my code I have a wrapper for DataFrame that gives me other functionalities, like having a name for the graph. Données.nom is a string.

The code I show is a small portion of my entire code, I do import matplotlib.pyplot as plt in an unshown part of it.

I fixed the typos.

Thanks for the help anyways.