数字转datetime格式

原数据:int型 

 

转成年月日 时分秒的形式

 

source_test['happenTime'] = source_test['happenTime'].map(lambda x:str(x))

source_test['happenTime'] = pd.to_datetime(source_test['happenTime'],format='%Y%m%d%H%M%S',)#format='%Y%m%d %H:%M:%S'

  

 

posted @ 2019-06-27 16:54  nxf_rabbit75  阅读(567)  评论(0)    收藏  举报