modin.pandas.DatetimeIndex.quarter

property DatetimeIndex.quarter: Index[source]

The quarter of the date.

Return type:

An Index Containing quarter of the date.

Examples

>>> idx = pd.DatetimeIndex(["1/1/2020 10:00:00+00:00",
...                         "2/1/2020 11:00:00+00:00"])
>>> idx.quarter
Index([1, 1], dtype='int64')
Copy