We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df2e361 commit 75dfa21Copy full SHA for 75dfa21
pandas/_libs/tslibs/period.pyx
@@ -1217,6 +1217,25 @@ cdef class _Period(object):
1217
1218
@property
1219
def day(self):
1220
+ """
1221
+ Get day of the month that a Period falls on.
1222
+
1223
+ Returns
1224
+ -------
1225
+ int
1226
1227
+ See Also
1228
+ --------
1229
+ Period.dayofweek : Get the day of the week
1230
1231
+ Period.dayofyear : Get the day of the year
1232
1233
+ Examples
1234
1235
+ >>> p = pd.Period("2018-03-11", freq='H')
1236
+ >>> p.day
1237
+ 11
1238
1239
base, mult = get_freq_code(self.freq)
1240
return pday(self.ordinal, base)
1241
0 commit comments