Python
2022. 5. 2. 11:05
def percentile(n):
def percentile_(x):
return np.percentile(x, n)
percentile_.__name__ = 'percentile_%s' % n
return percentile_
column.agg([np.sum, np.mean, np.std, np.median,
np.var, np.min, np.max, percentile(50), percentile(95)])
'Python' 카테고리의 다른 글
[python] dataframe column index 가져오기 (0) | 2022.05.30 |
---|---|
[Python]이미지 파일 불러와서 일자별로 폴더 생성 후 복사 (0) | 2022.05.29 |
decimal. 부동소수점 계산을 위한 라이브러리 (0) | 2022.03.30 |
dataframe pivot table 후에 index name 지우기 (0) | 2022.03.17 |
jupyter에서 warning 메시지 제거 (0) | 2022.01.10 |