pandas.Period.daysinmonth — pandas 0.25.3 documentation (original) (raw)

Period. daysinmonth

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

Returns: int

Examples

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