pandas.Period.daysinmonth#
- Period.daysinmonth#
获取 Period 所属月份的总天数。
- Returns:
- int
参见
Period.days_in_month返回月份中的天数。
Period.dayofyear返回一年中的第几天。
Examples
>>> p = pd.Period("2018-03-11", freq='h') >>> p.daysinmonth 31
获取 Period 所属月份的总天数。
参见
Period.days_in_month返回月份中的天数。
Period.dayofyear返回一年中的第几天。
Examples
>>> p = pd.Period("2018-03-11", freq='h')
>>> p.daysinmonth
31