Note
Pandas (8) 본문
728x90
How to get the minimum, 25th percentile, median, 75th, and max of a numeric series?
# Input
state = np.random.RandomState(100)
ser = pd.Series(state.normal(10, 5, 25))
# Solution
np.percentile(ser, q=[0, 25, 50, 75, 100])
'Pandas' 카테고리의 다른 글
Pandas (10) (0) | 2022.07.30 |
---|---|
Pandas (9) (0) | 2022.07.29 |
Pandas (7) (0) | 2022.07.27 |
Pandas (6) (0) | 2022.07.26 |
Pandas (5) (0) | 2022.07.25 |
Comments