Get the total number of days of the month that this period falls on.
See also
Period.days_in_monthReturn the days of the month.
Period.dayofyearReturn the day of the year.
Examples
>>> p = pd.Period("2018-03-11", freq='h')
>>> p.daysinmonth
31
© 2008–2011, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
© 2011–2025, Open source contributors
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/2.3.0/reference/api/pandas.Period.daysinmonth.html