Reputation: 14978
I am trying to plot a graph of the following data:
When I use df.groupby('Item').sum().plot()
it results:
First, it does not seem to show all 107 records, 2nd, I don't know how to label Item names on X-axis. Any pointer pls?
Upvotes: 0
Views: 275
Reputation: 51155
Don't use a line chart here, use a bar chart, as there is no linear correlation between any of your items. This will solve your labeling problem at the same time:
df.groupby('Item').sum().plot(kind='bar')
plt.tight_layout()
plt.show()
Upvotes: 2