convert_durations#
- pylibcudf.strings.convert.convert_durations.from_durations(Column durations, unicode format=None) Column #
使用提供的格式模式,将持续时间列转换为新的字符串列。
详情请参阅 cpp:func:cudf::strings::from_durations
- 参数:
- durationsColumn
要转换的持续时间值。
- formatstr
指定输出格式的字符串。默认格式为 “%D days %H:%M:%S”。
- 返回:
- Column
包含格式化持续时间的新字符串列。
- pylibcudf.strings.convert.convert_durations.to_durations(Column input, DataType duration_type, unicode format) Column #
使用提供的格式模式,将字符串列转换为新的持续时间列。
详情请参阅 cpp:func:cudf::strings::to_durations
- 参数:
- inputColumn
用于此操作的字符串实例。
- duration_typeDataType
用于创建输出列的持续时间类型。
- formatstr
指定字符串中持续时间格式的字符串。
- 返回:
- Column
新的持续时间列。