pd.DateTimeIndex.quarter¶
pandasDatetimeIndex.quarter
示例用法¶
>>> @bodo.jit
... def f(I):
... return I.quarter
>>> I = pd.DatetimeIndex(pd.date_range(start="2019-12-31 02:32:45", end="2020-01-01 19:12:05", periods=5))
>>> f(I)
Int64Index([4, 4, 4, 1, 1], dtype='int64')
支持从 DatetimeIndex 中减去 Timestamp 及其反向操作。
比较运算符 ==, !=, >=, >, <=, < 在
DatetimeIndex 和 datetime 字符串之间
是支持的。
时间差索引¶
TimedeltaIndex 对象是支持的。它们可以被构造、打包/解包,并设置为数据框和系列的索引。