For users
apply_ufunc
For developers/contributors
Community
DataArray.dt.days_in_month
The number of days in the month