Reputation: 81
My code is
disagreements = pivoted[pivoted.movie_id.isin(top_50.index)]["diff"]
disagreements.order().plot(kind="bar", figsize=[10,15])
Error is
Series' object has no attribute 'order' currently trying this on spider,python3.6. anybody with a solution please
Upvotes: 5
Views: 14083
Reputation: 1
Try the code below:
disagreements.sort_values().plot(kind="bar", figsize=[10,15])
Upvotes: 0
Reputation: 699
Please check the used Pandas library version. If you are using the latest one, you can use sort_values() method. For details, you can refer http://pandas.pydata.org/pandas-docs/stable/generated/pandas.Series.sort_values.html
Upvotes: 13