xarray.DataArray.dt.is_month_end

DataArray.dt.is_month_end

Indicates whether the date is the last day of the month.