pandas.Timestamp.is_leap_year#

Timestamp.is_leap_year#

如果年份是闰年,则返回True。

示例

>>> ts = pd.Timestamp(2020, 3, 14)
>>> ts.is_leap_year
True