我从数据源中得到了一个日期字段的值
以下是我的代码:
以下是上述代码的输出结果:
a1523245800
。我想知道如何将这个值转换为日期dtype类型?我已经尝试使用pandas.to_datetime
,但似乎不起作用。谢谢。以下是我的代码:
pd.to_datetime([`a1523245800`], errors='coerce')
以下是上述代码的输出结果:
DatetimeIndex(['NaT'], dtype='datetime64[ns]', freq=None)