pandas.Period.is_leap_year#

Period.is_leap_year#

Return True if the period’s year is in a leap year.

See also

Timestamp.is_leap_year

Check if the year in a Timestamp is a leap year.

DatetimeIndex.is_leap_year

Boolean indicator if the date belongs to a leap year.

Examples

>>> period = pd.Period('2022-01', 'M')
>>> period.is_leap_year
False
>>> period = pd.Period('2020-01', 'M')
>>> period.is_leap_year
True