df['substring'] = df['substring'].apply(lambda x : int(time.mktime(time.strptime(x, "%Y-%m-%d"))))
pandas将某一行str时间变为时间戳
最新推荐文章于 2022-10-16 16:44:50 发布
df['substring'] = df['substring'].apply(lambda x : int(time.mktime(time.strptime(x, "%Y-%m-%d"))))