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
19 changes: 19 additions & 0 deletions pandas/_libs/tslibs/period.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1217,6 +1217,25 @@ cdef class _Period(object):

@property
def day(self):
"""
Get day of the month that a Period falls on.

Returns
-------
int

See Also
--------
Period.dayofweek : Get the day of the week

Period.dayofyear : Get the day of the year

Examples
--------
>>> p = pd.Period("2018-03-11", freq='H')
>>> p.day
11
"""
base, mult = get_freq_code(self.freq)
return pday(self.ordinal, base)

Expand Down