dtype
dtype
reviews.price.dtype
)dtypes
reviews.dtypes
)astype
reviews.points.astype('float64')
)Missing Data
pd.isnull()
/pd.notnull()
reviews[pd.isnull(reviews.country)]
)fillna()
reviews.region_2.fillna("Unknown")
)replace()
reviews.taster_twitter_handle.replace("@kerinokeefe", "@kerino")
)Renaming
rename()
reviews.rename(columns={'points': 'score'})
)rename_axis
reviews.rename_axis("wines", axis='rows').rename_axis("fields", axis='columns')
)Combining
concat()
pd.concat([canadian_youtube, british_youtube])
)join()
left.join(right, lsuffix='_CAN', rsuffix='_UK')
)lsuffix=
와 rsuffix=
는 동일한 열 이름이 있는 경우를 위해 사용
pandas도 완료~
하지만 아직 능숙하게 다루지는 못하겠다.
계속 사용해보면서 익숙해져야지