pandas.Timestamp.is_leap_year

Timestamp.is_leap_year

Return True if year is a leap year.

Returns:
bool

Examples

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

© 2008–2022, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/2.2.2/reference/api/pandas.Timestamp.is_leap_year.html