import pandas as pd
# 방법 1
df_wthr['date'] = df_wthr['date'].astype('datetime64')
# 방법 2
df_wthr['date'] = pd.to_datetime(df_wthr['date'])
'언어 꿀Tip > Python 꿀tip!' 카테고리의 다른 글
07_01_61. 데이터프레임 특정 컬럼명 변경 (dataframe rename) (0) | 2021.06.23 |
---|---|
07_01_60. datetime 에서 year, month, day 데이터 컬럼 생성 (0) | 2021.06.23 |
07_01_58. seaborn barplot 막대그래프 (0) | 2021.06.23 |
07_01_57. graph 카테고리별 분포 seaborn countplot (1) | 2021.06.23 |
07_01_56. dropna 함수 (결측치 제거) (0) | 2021.06.23 |