Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions pandas/_libs/tslibs/period.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1275,6 +1275,24 @@ cdef class _Period(object):

@property
def daysinmonth(self):
"""
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
"""
return self.days_in_month

@property
Expand Down