pyspark.pandas.DatetimeIndex.is_year_end

property DatetimeIndex.is_year_end

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

Returns
Index

Returns an Index with boolean values.

See also

is_year_start

Similar property indicating the start of the year.

Examples

>>> idx = ps.date_range("2017-12-30", periods=3)
>>> idx.is_year_end  
Index([False, True, False], dtype='bool')