df[['年月日']].apply(lambda x: x.strftime(‘%Y-%m-%d’))
df['年月日'] =[x.strftime('%Y-%m-%d') for x in df['年月日']]
pandas的timestamp时间戳转string
最新推荐文章于 2025-04-02 00:11:54 发布
df[['年月日']].apply(lambda x: x.strftime(‘%Y-%m-%d’))
df['年月日'] =[x.strftime('%Y-%m-%d') for x in df['年月日']]