관리 메뉴

미래기술연구소

Titanic Prediction_isnull() , notnull() 본문

카테고리 없음

Titanic Prediction_isnull() , notnull()

I s a a c 2020. 10. 14. 23:05
728x90
반응형

우선 .info( ) 를 사용하여 데이터 정보를 불러온다

 

빈 데이터 찾기

.insull( ) / 기본값 / .notnull( )

 

True = NaN = False
False = Data = True

 

안 빈 데이터 찾기

.insull( ) / 기본값 / .notnull( )

 

True = NaN = False
False = Data = True

 

train[train["Age"].isnull()] = 0

빈 데이터를 NaN 에서 0 으로 대체

 

~ .not / is null( )

~ 은 기존 결과값의 또 한번 더 반전

 

 

728x90
반응형