modin.pandas.DatetimeIndex.is_year_end

property DatetimeIndex.is_year_end: Index[source]

Indicate whether the date is the last day of the year.

Returns:

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

  • returns a python array.

See also

is_year_start

Similar property indicating the start 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_end
Index([False, True, False], dtype='bool')
Copy