Untitled

From Crippled Anoa, 5 Months ago, written in Plain Text, viewed 101 times.
URL http://codebin.org/view/58a0bcab Embed
Download Paste or View Raw
  1. station_stat_full = station_stat_full.query('count > 30')
  2. good_stat2 = station_stat_full.pivot_table(index='name', values='time_spent', aggfunc=['median', 'count'])
  3. good_stat2.columns=['median_time', 'stations']
  4. print(good_stat2.head(5))

Reply to "Untitled"

Here you can reply to the paste above