We can see that the line plot is not getting plotted properly.
We need to sort indexes before plotting.
Kindly use the below code
pokemon['HP'].sort_values(ascending = True).value_counts().sort_index().plot(kind = 'line')
We can see that the line plot is not getting plotted properly.
We need to sort indexes before plotting.
Kindly use the below code
pokemon['HP'].sort_values(ascending = True).value_counts().sort_index().plot(kind = 'line')
Comments
0 comments
Article is closed for comments.