pandas.tseries.offsets.Week.is_year_end — pandas 2.2.3 documentation (original) (raw)

Week.is_year_end(ts)#

Return boolean whether a timestamp occurs on the year end.

Examples

ts = pd.Timestamp(2022, 1, 1) freq = pd.offsets.Hour(5) freq.is_year_end(ts) False