pandas.Timestamp.is_year_end#
- Timestamp.is_year_end#
如果日期是该年的最后一天,则返回 True。
- Returns:
- bool
参见
Timestamp.is_year_start指示一年开始的类似属性。
Examples
>>> ts = pd.Timestamp(2020, 3, 14) >>> ts.is_year_end False
>>> ts = pd.Timestamp(2020, 12, 31) >>> ts.is_year_end True