Pandas Timedelta对象

来源:互联网 发布:诛仙数据互通查询 编辑:程序博客网 时间:2024/06/11 05:42
属性 描述 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
原创粉丝点击