본문 바로가기
Kaggle Learn

Pandas - Data Types and Missing Values

by 가으더 2024. 3. 20.
728x90

Dtypes

DataFrame or Series의 열에 대한 데이터 유형을 dtype이라함.
dtype ==> 열의 유형을 파악

astype() ==> 변환이 가능하면 데이터 형식으로 변환 가능 (ex. int --> float)

Missing data

fillna() : missing 값들을 특정 값으로 교체

reviews.taster_twitter_handle.replace("@kerinokeefe", "@kerino")

replace(A, B) : A를 B로 교체