| 属性 | 描述 |
|---|---|
| TimedeltaIndex | Immutable ndarray of timedelta64 data, represented internally as int64, and |
| TimedeltaIndex.days | 天数 |
| TimedeltaIndex.seconds | Number of seconds (>= 0 and less than 1 day) for each element. |
| TimedeltaIndex.microseconds | Number of microseconds (>= 0 and less than 1 second) for each element. |
| TimedeltaIndex.nanoseconds | Number of nanoseconds (>= 0 and less than 1 microsecond) for each element. |
| TimedeltaIndex.components | Return a dataframe of the components (days, hours, minutes, seconds, milliseconds, microseconds, nanoseconds) of the Timedeltas. |
| TimedeltaIndex.inferred_freq | |
| TimedeltaIndex.to_pytimedelta() | Return TimedeltaIndex as object ndarray of datetime.timedelta objects |
| TimedeltaIndex.to_series(**kwargs) | Create a Series with both index and values equal to the index keys |
| TimedeltaIndex.round(freq, *args, **kwargs) | round the index to the specified freq |
| TimedeltaIndex.floor(freq) | floor the index to the specified freq |
| TimedeltaIndex.ceil(freq) | ceil the index to the specified freq |
Pandas Timedelta对象
最新推荐文章于 2024-06-06 15:32:24 发布
本文详细介绍了TimedeltaIndex的各种属性及方法,包括内部表示、不同时间单位的获取方式、时间组件分解、频率推断、时间间隔转换等。这些内容对于理解和使用TimedeltaIndex进行时间数据处理非常关键。

3万+

被折叠的 条评论
为什么被折叠?



