pd.Series.value_counts() 객체와 고유값 개수

찌니·2021년 6월 23일
0


https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Series.value_counts.html

returns object containing counts of unique values
고유 값의 개수(count)를 포함하는 객체(value)를 반환

pd.Series.value_counts(normalize=False,
			sort=True,
            		ascending=False,
            		bins=None,
            		dropna=True)
  • normalize : False=개수, True=상대 비율
  • sort : True=개수 기준 정렬, False=유일한 값 기준 정렬
  • ascending : False=내림차순 정렬, True=오름차순 정렬
  • bins : None=유일값 기준 개수, int(숫자)=Bins Group별 개수
  • dropna : True=NaN 무시, False=유일값에 NaN 포함
profile
https://gggggeun.tistory.com/

0개의 댓글

관련 채용 정보