Skip to content
- 데이터 일부 보기
- df.head(n) : 앞부분 미리 보기
- df.tail(n) : 뒷부분 미리 보기
- 데이터 요약 정보 확인
- df.shape
- df.dtypes / df[열이름].dtypes
- df.info()
- df.describe()
- 데이터 개수 확인
- df.count() : 각 열의 데이터 개수를 Series 형으로 반환
- df[‘열이름’].value_counts() : 열의 고유값의 개수
- 통계함수
- df.mean() / df[‘열이름’].mean() : 평균
- df.median() / df[‘열이름’].median() : 중간값
- df.max() / df[‘열이름’].max() : 최대값
- df.min() / df[‘열이름’].min() : 최소값
- df.std() / df[‘열이름’].std() : 표준편차
- df.corr() / df[[‘열이름1’, .. ‘열이름n’]].corr() : 상관계수
- 판다스 내장 그래프
- df.plot() / df[[‘열1′,..,’열n’]].plot(): 선 그래프
- df.plot(kind=’bar’) / df[[‘열1′,..,’열n’]].plot(kind=’bar’): 막대 그래프
- df.plot(kind=’hist’) / df[[‘열1′,..,’열n’]].plot(kind=’hist’) : 히스토그램
- df.plot(x=’열’, y=’열’, kind=’scatter’) : 산점도
- df.plot(kind=’box’) / df.plot([‘열1′,..,’열n’], kind=’box’): 박스 플롯
error: Content is protected !!