DataFrame Data 살펴보기
DataFrame 구조
DataFrame 정보 확인하기
df.head(n)
df.tail(n)>>> print(df.head(6))
mpg cylinders displacement horsepower weight acceleration model year origin name
0 18.0 8 307.0 130.0 3504 12.0 70 1 "chevrolet chevelle malibu"
1 15.0 8 350.0 165.0 3693 11.5 70 1 "buick skylark 320"
2 18.0 8 318.0 150.0 3436 11.0 70 1 "plymouth satellite"
3 16.0 8 304.0 150.0 3433 12.0 70 1 "amc rebel sst"
4 17.0 8 302.0 140.0 3449 10.5 70 1 "ford torino"
5 15.0 8 429.0 198.0 4341 10.0 70 1 "ford galaxie 500">>> print(df.tail())
mpg cylinders displacement horsepower weight acceleration model year origin name
393 27.0 4 140.0 86.00 2790 15.6 82 1 "ford mustang gl"
394 44.0 4 97.0 52.00 2130 24.6 82 2 "vw pickup"
395 32.0 4 135.0 84.00 2295 11.6 82 1 "dodge rampage"
396 28.0 4 120.0 79.00 2625 18.6 82 1 "ford ranger"
397 31.0 4 119.0 82.00 2720 19.4 82 1 "chevy s-10"요약 정보 확인하기
데이터 개수 확인
통계 함수
전체 열 메소드
특정 열 메소드
평균값
중간값
최대값
최소값
표준편차
상관계수
내장 그래프 도구
kind option
설명
kind option
설명
선 그래프
막대 그래프
히스토그램
산점도
박스 플롯
참고
Last updated






