From 8550ec35c0d1cc80786305913fb8a5412eb9f89d Mon Sep 17 00:00:00 2001 From: anirudnits Date: Wed, 2 Oct 2019 23:13:04 +0530 Subject: [PATCH 1/3] Minor fixes for docstring errors in pandas.period_range --- pandas/core/indexes/period.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pandas/core/indexes/period.py b/pandas/core/indexes/period.py index ee85b0fb91acb..33c6a7de24c73 100644 --- a/pandas/core/indexes/period.py +++ b/pandas/core/indexes/period.py @@ -1001,18 +1001,18 @@ def period_range(start=None, end=None, periods=None, freq=None, name=None): Parameters ---------- - start : string or period-like, default None + start : str or period-like, default None Left bound for generating periods - end : string or period-like, default None + end : str or period-like, default None Right bound for generating periods - periods : integer, default None + periods : int, default None Number of periods to generate - freq : string or DateOffset, optional + freq : str or DateOffset, optional Frequency alias. By default the freq is taken from `start` or `end` if those are Period objects. Otherwise, the default is ``"D"`` for daily frequency. - name : string, default None + name : str, default None Name of the resulting PeriodIndex Returns From 7bc735760f41d2b8b7af52de0fe301299a2019ba Mon Sep 17 00:00:00 2001 From: anirudnits Date: Wed, 2 Oct 2019 23:27:18 +0530 Subject: [PATCH 2/3] Minor fixes for docstring errors in pandas.period_range_and_PeriodIndex --- pandas/core/indexes/period.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/core/indexes/period.py b/pandas/core/indexes/period.py index 33c6a7de24c73..1086749e71a21 100644 --- a/pandas/core/indexes/period.py +++ b/pandas/core/indexes/period.py @@ -89,7 +89,7 @@ class PeriodIndex(DatetimeIndexOpsMixin, Int64Index, PeriodDelegateMixin): Optional period-like data to construct index with copy : bool Make a copy of input ndarray - freq : string or period object, optional + freq : str or period object, optional One of pandas period strings or corresponding objects start : starting value, period-like, optional If data is None, used as the start point in generating regular From f0fd8d7cdafd7522d1fc07a94ea503ffea7501f3 Mon Sep 17 00:00:00 2001 From: anirudnits Date: Wed, 2 Oct 2019 23:29:35 +0530 Subject: [PATCH 3/3] Minor fixes for docstring errors in pandas.period_range_and_PeriodIndex --- pandas/core/indexes/period.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/core/indexes/period.py b/pandas/core/indexes/period.py index 1086749e71a21..0fc74f4e78c9f 100644 --- a/pandas/core/indexes/period.py +++ b/pandas/core/indexes/period.py @@ -85,7 +85,7 @@ class PeriodIndex(DatetimeIndexOpsMixin, Int64Index, PeriodDelegateMixin): Parameters ---------- - data : array-like (1d integer np.ndarray or PeriodArray), optional + data : array-like (1d int np.ndarray or PeriodArray), optional Optional period-like data to construct index with copy : bool Make a copy of input ndarray