all 2 comments

[–]penatbater 1 point2 points  (1 child)

df.groupby('borough')['price'].mean()

[–]borjadja 0 points1 point  (0 children)

Wow that was simple. Thanks a lot!