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
Coincidentally, this information is captured with the describe method:
describe
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