2024-04-26 00:30:21 发布
网友
我有一个时间戳格式的pandas数据框列,希望将唯一日期(无时间)提取到列表中。我试过以下的方法都不管用
1. dates = datetime.datetime(df['EventTime'].tolist()).date() 2. dates = pd.to_datetime(df['EventTime']).date().tolist() 3. dates = pd.to_datetime(df['EventTime']).tolist().date()
有人能帮忙吗?
目前没有回答
目前没有回答
相关问题 更多 >
编程相关推荐