Aggregate Methods Flashcards
1
Q
Sum
A
Sum of values
2
Q
Cumsum
A
Cumulative sum
3
Q
Mean
A
4
Q
Mean
A
Mean of values
5
Q
Median
A
Arithmetic median of values
6
Q
Min
A
Minimum
7
Q
Max
A
Maximum
8
Q
Mode
A
Mode
9
Q
Std
A
Unbiased standard deviation
10
Q
Var
A
Unbiased variance
11
Q
Quantile
A
Compute rank-based statistics of elements
12
Q
How to pull up the mean of class by group?
A
df.groupby(‘Class’)[‘Seat comfort’].mean()