Skip to content

Commit 868cf9e

Browse files
anirudnitsWillAyd
authored andcommitted
Fixed docstring errors in pandas.period range and pandas.PeriodIndex (#28756)
1 parent 0436570 commit 868cf9e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

pandas/core/indexes/period.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,11 @@ class PeriodIndex(DatetimeIndexOpsMixin, Int64Index, PeriodDelegateMixin):
8585
8686
Parameters
8787
----------
88-
data : array-like (1d integer np.ndarray or PeriodArray), optional
88+
data : array-like (1d int np.ndarray or PeriodArray), optional
8989
Optional period-like data to construct index with
9090
copy : bool
9191
Make a copy of input ndarray
92-
freq : string or period object, optional
92+
freq : str or period object, optional
9393
One of pandas period strings or corresponding objects
9494
start : starting value, period-like, optional
9595
If data is None, used as the start point in generating regular
@@ -1001,18 +1001,18 @@ def period_range(start=None, end=None, periods=None, freq=None, name=None):
10011001
10021002
Parameters
10031003
----------
1004-
start : string or period-like, default None
1004+
start : str or period-like, default None
10051005
Left bound for generating periods
1006-
end : string or period-like, default None
1006+
end : str or period-like, default None
10071007
Right bound for generating periods
1008-
periods : integer, default None
1008+
periods : int, default None
10091009
Number of periods to generate
1010-
freq : string or DateOffset, optional
1010+
freq : str or DateOffset, optional
10111011
Frequency alias. By default the freq is taken from `start` or `end`
10121012
if those are Period objects. Otherwise, the default is ``"D"`` for
10131013
daily frequency.
10141014
1015-
name : string, default None
1015+
name : str, default None
10161016
Name of the resulting PeriodIndex
10171017
10181018
Returns

0 commit comments

Comments
 (0)