fikkybla3e
fikkybla3e

Reputation: 81

Series' object has no attribute 'order'

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

Answers (2)

Aydar Naumetov
Aydar Naumetov

Reputation: 1

Try the code below:

disagreements.sort_values().plot(kind="bar", figsize=[10,15])

Upvotes: 0

Junyong Yao
Junyong Yao

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

Related Questions