How to a use the .size function on a pandas Dataframe while still keeping all columns in the group

后端 未结 0 1651
情深已故
情深已故 2020-12-01 05:50

I hope everyone is having a great Monday!

group = airBnb.groupby([\'ids\', \'names\']).size().nlargest(10)
plt.pie(group, group[\'host_names\'])
相关标签:
回答
  • 消灭零回复
提交回复
热议问题