# Making GroupBy object
grouped = df.groupby('cd')
## 1)
grouped.describe()['cnt']
## 2) T : transpose
grouped.describe()['cnt'].T
2) output 예시

'언어 꿀Tip > Python 꿀tip!' 카테고리의 다른 글
| 07_01_76. period_range 날짜생성 후 년월 string 변환 (0) | 2021.09.24 |
|---|---|
| 07_01_74. dataframe difference of dates (0) | 2021.08.27 |
| 07_02_02. [codility] CyclicRotation python (0) | 2021.08.23 |
| 07_02_01. [codility] OddOccurrencesInArray collection 모듈 Counter 이용 (0) | 2021.08.23 |
| 07_01_71. sql로 데이터프레임(dataframe) 다루기, pysqldf (0) | 2021.08.17 |