Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- df.t
- stripplot
- LOC
- 혼공파
- histplot
- plot
- 구조체
- 한빛미디어
- matplotlib
- 혼공학습단
- value_counts
- class
- 동적할당
- const
- violinplot
- catplot
- 열혈c++
- swarmplot
- lmplot
- bins
- c++
- STR
- boxplot
- seaborn
- 참조자
- expand=true
- 클래스
- 포인터
- Axis
- 혼공단
Archives
- Today
- Total
목록dropna (1)
yEverything
데이터 클리닝-완결성
import pandas as pddf = pd.read_csv('attendance.csv', index_col=0)dfattendance.csv파일 읽기이런 데이터들이 들어있다.df.isnull()null인지 불린값으로 알려준다.데이터들이 적을 땐 괜찮지만, 많으면 찾아내기 쉽지 않다.df.isnull().sum()sum을 사용해서 총 몇 개인지를 좀 더 쉽게 보자.배구에 3개의 null값이 있는 것을 확인했다.df.dropna() dropna를 하면 NaN인 값들을 알아서 drop해준다.없어진 것을 확인할 수 있지만, 다시 df를 출력해보면 안 없어지고 있는 것을 확인할 수 있다. 원본 데이터에 영향을 줄려면df.dropna(inplace=True)dfinplace=True를 잊지 말자.원본에도 잘..
Data_analysis/Google_colaboratory
2024. 5. 3. 20:49