일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- computer vision
- opencv
- 지도학습
- 알파브렌딩
- dropna
- mask detection
- 비트와이즈
- index
- 판다스
- NULL
- dataframe
- 이미지프로세싱
- NAN
- 이미지처리
- KNeighborsClassifier
- 결측값
- 파이썬
- pandas
- sklearn
- scikit-learn
- 사이킷런
- Supervised learning
- Deep learning
- tfidfvectorizer
- k-최근접 이웃 분류
- ML
- 결측치
- 머신러닝
- Python
- 데이터프레임
- Today
- Total
목록NULL (2)
Sun.El Data Analysis

1. 결측치/비결측치 행 True, False 확인 : isnull, notnull df.isnull() df.isna() df.notnull() 2. 결측치 관련 행/열 정보 확인 : isnull, notnull #칼럼 내 NaN이 하나라도 있으면 True, 없으면 False df.isnull().any(axis=0) df.isna().any(axis=0) #칼럼 내 모두 NaN이면 True, 아니면 False df.isnull().all(axis=0) df.isna().all(axis=0) #칼럼 내 NaN이 하나도 없으면 True, 하나라도 있으면 False df.notnull().all(axis=0) #로우 내 NaN이 하나라도 있으면 True, 없으면 False df.isnull().any(ax..

1. 결측값이 하나라도 있는 모든 행 삭제 df1 = df.dropna() #axis=0 기본값 df1 = df.dropna(axis=0) df1 = df.dropna(axis='index') 2. 결측값이 하나라도 있는 모든 열 삭제 df1 = df.dropna(axis=1) df1 = df.dropna(axis='columns') 3. 특정 칼럼에 결측값이 하나라도 있을 시 모든 행 삭제 df1 = df.dropna(subset=['animal']) df1 = df.dropna(subset=['animal'], how='any') 3. 전체 행/열이 결측값인 행/열 삭제 : how = 'all' df1 = df.dropna(axis=0, how='all') df1 = df.dropna(axis=1, ..