We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b2e472a commit 74e6c78Copy full SHA for 74e6c78
pandas/_libs/tslibs/period.pyx
@@ -1294,6 +1294,24 @@ cdef class _Period(object):
1294
1295
@property
1296
def daysinmonth(self):
1297
+ """
1298
+ Get the total number of days of the month that the Period falls in.
1299
+
1300
+ Returns
1301
+ -------
1302
+ int
1303
1304
+ See Also
1305
+ --------
1306
+ Period.days_in_month : Return the days of the month
1307
+ Period.dayofyear : Return the day of the year
1308
1309
+ Examples
1310
1311
+ >>> p = pd.Period("2018-03-11", freq='H')
1312
+ >>> p.daysinmonth
1313
+ 31
1314
1315
return self.days_in_month
1316
1317
0 commit comments