kbathina / Untappd

code for downloading and analyzing Untappd data
8 stars 2 forks source link

TypeError in sort_values() #1

Closed GregoryVG closed 4 years ago

GregoryVG commented 4 years ago

File "Untappd_Analytics.py", line 322, in beer_style_by_rating meds = abv_beers.groupby('style').apply(np.mean).sort_values(by = 'rating', ascending = False) TypeError: sort_values() got an unexpected keyword argument 'by'

kbathina commented 4 years ago

Are you using python 3? What version of pandas are you using?

GregoryVG commented 4 years ago

Python 3.8.2 Pandas 1.0.3

Op di 28 apr. 2020 om 19:33 schreef Krishna Bathina < notifications@github.com>:

Are you using python 3? What version of pandas are you using?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kbathina/Untappd/issues/1#issuecomment-620750416, or unsubscribe https://github.com/notifications/unsubscribe-auth/APL7BYDI6RQLQHJHK344C4LRO4HP7ANCNFSM4MS4QYAA .

kbathina commented 4 years ago

Are you proficient in python? If so, what is the data type of abv_beers? Also, can you show me the output of the style_amount_filter in line 311?

kbathina commented 4 years ago

closed because of no response