【发布时间】:2020-08-09 03:42:10
【问题描述】:
我有一个数据框: enter image description here
我想在当地时间显示“时间戳”,但不运行。
time.localtime(data_user['TimeStamps'].astype(int))
错误:
TypeError: cannot convert the series to <class 'int'>
我怎样才能正确地做到这一点?
【问题讨论】:
标签: python typeerror localtime