【问题标题】:Convert date and time from two columns into a single datetime column using Dask map_partitions使用 Dask map_partitions 将日期和时间从两列转换为单个日期时间列
【发布时间】:2020-05-12 22:29:25
【问题描述】:

如何转换这种类型的两个日期和时间列:

Date    Time
1/01/1990   1055
2/01/1990   1055
3/01/1990   1055
4/01/1990   1729
5/01/1990   1729

使用 dask map_partitions 进入单个日期时间列(例如 format='%H:%M:%S %Y-%m-%d')?

【问题讨论】:

    标签: date datetime type-conversion dask dask-dataframe


    【解决方案1】:

    我会弄清楚如何使用 Pandas 执行此操作,然后在 dask 数据帧上使用 map_partitions 函数来并行应用该函数。

    Stack Overflow 上的 Pandas 标签也维护得很好,所以在那里提出问题可能会得到快速响应。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-02-12
      • 1970-01-01
      • 1970-01-01
      • 2017-05-17
      • 2019-05-26
      • 2017-05-14
      • 1970-01-01
      相关资源
      最近更新 更多