cudf.core.series.DatetimeProperties.is_quarter_start#

property DatetimeProperties.is_quarter_start#

Boolean indicator if the date is the first day of a quarter.

Returns
Series
Booleans indicating if dates are the beginning of a quarter

Examples

>>> import pandas as pd, cudf
>>> s = cudf.Series(
...     pd.date_range(start='2000-09-26', end='2000-10-03', freq='1D'))
>>> s
0   2000-09-26
1   2000-09-27
2   2000-09-28
3   2000-09-29
4   2000-09-30
5   2000-10-01
6   2000-10-02
7   2000-10-03
dtype: datetime64[ns]
>>> s.dt.is_quarter_start
0    False
1    False
2    False
3    False
4    False
5     True
6    False
7    False
dtype: bool