Note
Pandas (9) 본문
728x90
How to get frequency counts of unique items of a series?
# Input
ser = pd.Series(np.take(list('abcdefgh'), np.random.randint(8, size=30)))
# Solution
ser.value_counts()
'Pandas' 카테고리의 다른 글
Pandas (11) (0) | 2022.07.31 |
---|---|
Pandas (10) (0) | 2022.07.30 |
Pandas (8) (0) | 2022.07.28 |
Pandas (7) (0) | 2022.07.27 |
Pandas (6) (0) | 2022.07.26 |
Comments