【发布时间】:2016-11-15 08:43:39
【问题描述】:
我有一个 pandas 数据框 df,其中有一列包含格式为 1,475,761,269,562 的 UNIX 时间戳。
当我尝试将其转换为
df["Timestamp"] = pd.to_datetime(df["Timestamp"], unit = "s"),
我得到
OverflowError: Long too big to convert.
我做错了什么?
【问题讨论】:
标签: python datetime pandas unix-timestamp