cudf.core.series.DatetimeProperties.is_year_start#

property DatetimeProperties.is_year_start: Series[source]#

Boolean indicator if the date is the first day of the year.

Returns:
Series
Booleans indicating if dates are the first day of the year.

Examples

>>> import pandas as pd, cudf
>>> s = cudf.Series(pd.date_range("2017-12-30", periods=3))
>>> dates
0   2017-12-30
1   2017-12-31
2   2018-01-01
dtype: datetime64[ns]
>>> dates.dt.is_year_start
0    False
1    False
2    True
dtype: bool