Skip to content

Commit 3687ae0

Browse files
committed
fix formatting and content of pandas.Period docstring. Closes pandas-dev#29073
1 parent b0f33b3 commit 3687ae0

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

pandas/_libs/tslibs/period.pyx

+11-2
Original file line numberDiff line numberDiff line change
@@ -2385,16 +2385,25 @@ class Period(_Period):
23852385
Parameters
23862386
----------
23872387
value : Period or str, default None
2388-
The time period represented (e.g., '4Q2005')
2388+
The time period represented (e.g., '4Q2005').
23892389
freq : str, default None
2390-
One of pandas period strings or corresponding objects
2390+
One of pandas period strings or corresponding objects.
2391+
ordinal : int, default None
2392+
The period offset from the gregorian proleptic epoch.
23912393
year : int, default None
2394+
Year value of the period.
23922395
month : int, default 1
2396+
Month value of the period.
23932397
quarter : int, default None
2398+
Quarter value of the period.
23942399
day : int, default 1
2400+
Day value of the period.
23952401
hour : int, default 0
2402+
Hour value of the period.
23962403
minute : int, default 0
2404+
Minute value of the period.
23972405
second : int, default 0
2406+
Second value of the period.
23982407
"""
23992408

24002409
def __new__(cls, value=None, freq=None, ordinal=None,

0 commit comments

Comments
 (0)