How to calculate 1st and 3rd quartiles?

前端 未结 10 1168
眼角桃花
眼角桃花 2020-12-04 19:14

I have DataFrame:

    time_diff   avg_trips
0   0.450000    1.0
1   0.483333    1.0
2   0.500000    1.0
3   0.516667    1.0
4   0.533333    2.0
10条回答
  •  生来不讨喜
    2020-12-04 19:59

    Coincidentally, this information is captured with the describe method:

    df.time_diff.describe()
    
    count    5.000000
    mean     0.496667
    std      0.032059
    min      0.450000
    25%      0.483333
    50%      0.500000
    75%      0.516667
    max      0.533333
    Name: time_diff, dtype: float64
    

提交回复
热议问题