modin.pandas.DatetimeIndex.is_year_start

property DatetimeIndex.is_year_start: Index[source]

Indicate whether the date is the first day of a year.

Returns:

  • An Index with boolean values. Note this is different from native pandas which

  • returns a python array.

See also

is_year_end

Similar property indicating the last day of the year.

Examples

>>> idx = pd.date_range("2017-12-30", periods=3)
>>> idx
DatetimeIndex(['2017-12-30', '2017-12-31', '2018-01-01'], dtype='datetime64[ns]', freq=None)
Copy
>>> idx.is_year_start
Index([False, False, True], dtype='bool')
Copy