- property DatetimeProperties.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.
- Integer indicating which quarter the date belongs to.
>>> import cudf >>> s = cudf.Series(["2020-05-31 08:00:00","1999-12-31 18:40:00"], ... dtype="datetime64[ms]") >>> s.dt.quarter 0 2 1 4 dtype: int8