pandas.Timestamp.is_month_end#

Timestamp.is_month_end#

Check if the date is the last day of the month.

This is determined by comparing the day component with the total number of days in the month of the Timestamp.

Returns:
bool

True if the date is the last day of the month.

See also

Timestamp.is_month_start

Similar property indicating month start.

Examples

>>> ts = pd.Timestamp(2020, 3, 14)
>>> ts.is_month_end
False
>>> ts = pd.Timestamp(2020, 12, 31)
>>> ts.is_month_end
True