我有一个带有时间戳的熊猫数据帧,如下所示:
df = pd.DataFrame({'a': [pd.Timestamp('2020-01-01 00:00:00')]})我用df.to_feather('a.feather')把它写到一个羽化文件中,然后用df <- arrow::read_feather('a.feather')把它读回R。
当我展示它的时候,我看到
A tibble: 1 × 1 a
<dttm>
2020-01-01 01:00:0001:00:00是从哪里来的?我怎样才能摆脱它?
发布于 2020-10-24 00:16:13
好的,看起来R或者arrow正在关注某种全局时区变量。因此,上述行为可以通过添加
Sys.setenv(TZ='GMT')在乞讨中。
https://stackoverflow.com/questions/64500923
复制相似问题