pandas的timestamp时间戳转string

df[['年月日']].apply(lambda x: x.strftime(%Y-%m-%d’))
df['年月日'] =[x.strftime('%Y-%m-%d') for x in df['年月日']]
发布了102 篇原创文章 · 获赞 101 · 访问量 2万+

猜你喜欢

转载自blog.csdn.net/weixin_43124279/article/details/104344197