不要用pd.datetime
对于秒级的时间戳:
···python
datetime.datetime.fromtimestamp(timestamp)
```python
df.time.apply(lambda x: time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(x)))
对于毫秒级的时间戳:
df.time.apply(lambda x: time.strftime("%Y-%m-%d %H:%M:%S", time.localtime(x/1000)))