Skip to content

Commit 591cef5

Browse files
IHackPyjorisvandenbossche
authored andcommitted
DOC: update the pandas.Period.minute docstring (#20314)
1 parent 22b6749 commit 591cef5

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

pandas/_libs/tslibs/period.pyx

+19
Original file line numberDiff line numberDiff line change
@@ -1271,6 +1271,25 @@ cdef class _Period(object):
12711271

12721272
@property
12731273
def minute(self):
1274+
"""
1275+
Get minute of the hour component of the Period.
1276+
1277+
Returns
1278+
-------
1279+
int
1280+
The minute as an integer, between 0 and 59.
1281+
1282+
See Also
1283+
--------
1284+
Period.hour : Get the hour component of the Period.
1285+
Period.second : Get the second component of the Period.
1286+
1287+
Examples
1288+
--------
1289+
>>> p = pd.Period("2018-03-11 13:03:12.050000")
1290+
>>> p.minute
1291+
3
1292+
"""
12741293
base, mult = get_freq_code(self.freq)
12751294
return pminute(self.ordinal, base)
12761295

0 commit comments

Comments
 (0)