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

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다

error: Content is protected !!