The to_datatime() function of pandas converts into a time series value

#转换成时间序列数据
data['Year']=pd.to_datetime(data.Year,format='%Y')
data.head()

Guess you like

Origin blog.csdn.net/weixin_39920026/article/details/108563852