- top_10_adv = data.pivot_table(index='locality_name', values='price_per_meter',aggfunc=['mean', 'count'])
- top_10_adv.columns=['price_per_meter_mean', 'price_per_meter_count']
- top_10_adv.sort_values(by=['price_per_meter_mean'], ascending = False, inplace=True)
- display(top_10_adv.sort_values(by='price_per_meter_count').head(10))
Re: Untitled
From Voluminous Pheasant, 1 Year ago, written in Plain Text, viewed 327 times.
This paste is a reply to Untitled from Melodic Ibis
- view diff
URL http://codebin.org/view/5fb9ea5a
Embed
Download Paste or View Raw
— Expand Paste to full width of browser