Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Series' object has no attribute 'order'

Tags:

python-3.6

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
like image 221
fikkybla3e Avatar asked Dec 14 '22 21:12

fikkybla3e


1 Answers

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

like image 168
Junyong Yao Avatar answered Mar 27 '23 12:03

Junyong Yao