pandas.DatetimeIndex.is_year_end#
- property DatetimeIndex.is_year_end[source]#
Indicate whether the date is the last day of the year.
This boolean attribute evaluates to True if the date is December 31st, and False otherwise. If the index has a business or anchored
freq(e.g."BYE"or"YE-MAR"), the result follows that frequency’s year boundaries instead of the calendar’s.See also
DatetimeIndex.is_year_startSimilar property indicating the start of the year.
Examples
>>> idx = pd.date_range("2017-12-30", periods=3) >>> idx.is_year_end array([False, True, False])