cudf.DatetimeIndex.quarter#
- property DatetimeIndex.quarter#
Integer indicator for which quarter of the year the date belongs in.
There are 4 quarters in a year. With the first quarter being from January - March, second quarter being April - June, third quarter being July - September and fourth quarter being October - December.
- Returns
- Int8Index
- Integer indicating which quarter the date belongs to.
Examples
>>> import cudf >>> gIndex = cudf.DatetimeIndex(["2020-05-31 08:00:00", ... "1999-12-31 18:40:00"]) >>> gIndex.quarter Int8Index([2, 4], dtype='int8')