用法:
property TimedeltaProperties.components
返回 Timedeltas 组件的 Dataframe。
- DataFrame
返回:
例子:
>>> s = cudf.Series([12231312123, 1231231231, 1123236768712, 2135656, 3244334234], dtype='timedelta64[ms]') >>> s 0 141 days 13:35:12.123 1 14 days 06:00:31.231 2 13000 days 10:12:48.712 3 0 days 00:35:35.656 4 37 days 13:12:14.234 dtype: timedelta64[ms] >>> s.dt.components days hours minutes seconds milliseconds microseconds nanoseconds 0 141 13 35 12 123 0 0 1 14 6 0 31 231 0 0 2 13000 10 12 48 712 0 0 3 0 0 35 35 656 0 0 4 37 13 12 14 234 0 0
相关用法
- Python cudf.core.series.TimedeltaProperties.microseconds用法及代码示例
- Python cudf.core.series.TimedeltaProperties.days用法及代码示例
- Python cudf.core.series.TimedeltaProperties.seconds用法及代码示例
- Python cudf.core.series.TimedeltaProperties.nanoseconds用法及代码示例
- Python cudf.core.series.DatetimeProperties.month用法及代码示例
- Python cudf.core.series.DatetimeProperties.year用法及代码示例
- Python cudf.core.series.DatetimeProperties.second用法及代码示例
- Python cudf.core.series.DatetimeProperties.dayofweek用法及代码示例
- Python cudf.core.series.DatetimeProperties.isocalendar用法及代码示例
- Python cudf.core.series.DatetimeProperties.hour用法及代码示例
- Python cudf.core.series.DatetimeProperties.ceil用法及代码示例
- Python cudf.core.series.DatetimeProperties.floor用法及代码示例
- Python cudf.core.series.DatetimeProperties.quarter用法及代码示例
- Python cudf.core.series.DatetimeProperties.weekday用法及代码示例
- Python cudf.core.series.DatetimeProperties.day用法及代码示例
- Python cudf.core.series.DatetimeProperties.dayofyear用法及代码示例
- Python cudf.core.series.DatetimeProperties.minute用法及代码示例
- Python cudf.core.series.DatetimeProperties.day_of_year用法及代码示例
- Python cudf.core.series.DatetimeProperties.round用法及代码示例
- Python cudf.core.series.DatetimeProperties.strftime用法及代码示例
注:本文由纯净天空筛选整理自rapids.ai大神的英文原创作品 cudf.core.series.TimedeltaProperties.components。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。