Table Of Contents

Search

Enter search terms or a module, class or function name.

pandas.Period.daysinmonth

Period.daysinmonth

Get the total number of days of the month that the Period falls in.

Returns:
int

See also

Period.days_in_month
Return the days of the month
Period.dayofyear
Return the day of the year

Examples

>>> p = pd.Period("2018-03-11", freq='H')
>>> p.daysinmonth
31
Scroll To Top