Skip to main content
`Ctrl`+`K`

# pandas.Period.daysinmonth

Period.daysinmonth

  Get the total number of days of the month that this period falls on.

  This value depends on the month and whether the year is a leap year. This is an alias for `days_in_month`.

  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