From 88ccc90708adfe5d242a541aa41db3dcd978925e Mon Sep 17 00:00:00 2001 From: Iqrar Agalosi Nureyza Date: Thu, 1 Oct 2020 13:03:57 +0700 Subject: [PATCH 1/4] Fix PR09 in flags, frame, and generic --- pandas/core/flags.py | 2 +- pandas/core/frame.py | 2 +- pandas/core/generic.py | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pandas/core/flags.py b/pandas/core/flags.py index 15966d8ddce2a..6a09bfa3bd082 100644 --- a/pandas/core/flags.py +++ b/pandas/core/flags.py @@ -10,7 +10,7 @@ class Flags: Parameters ---------- obj : Series or DataFrame - The object these flags are associated with + The object these flags are associated with. allows_duplicate_labels : bool, default True Whether to allow duplicate labels in this object. By default, duplicate labels are permitted. Setting this to ``False`` will diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 9b2540a1ce043..75fdeb122a074 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -2337,7 +2337,7 @@ def to_parquet( be parsed by ``fsspec``, e.g., starting "s3://", "gcs://". An error will be raised if providing this argument with a local path or a file-like buffer. See the fsspec and backend storage implementation - docs for the set of allowed keys and values + docs for the set of allowed keys and values. .. versionadded:: 1.2.0 diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 6f0aa70625c1d..04e1fc91c5fd4 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -2253,7 +2253,7 @@ def to_json( be parsed by ``fsspec``, e.g., starting "s3://", "gcs://". An error will be raised if providing this argument with a local path or a file-like buffer. See the fsspec and backend storage implementation - docs for the set of allowed keys and values + docs for the set of allowed keys and values. .. versionadded:: 1.2.0 @@ -2777,7 +2777,7 @@ def to_pickle( be parsed by ``fsspec``, e.g., starting "s3://", "gcs://". An error will be raised if providing this argument with a local path or a file-like buffer. See the fsspec and backend storage implementation - docs for the set of allowed keys and values + docs for the set of allowed keys and values. .. versionadded:: 1.2.0 @@ -3286,7 +3286,7 @@ def to_csv( be parsed by ``fsspec``, e.g., starting "s3://", "gcs://". An error will be raised if providing this argument with a local path or a file-like buffer. See the fsspec and backend storage implementation - docs for the set of allowed keys and values + docs for the set of allowed keys and values. .. versionadded:: 1.2.0 @@ -9195,7 +9195,7 @@ def shift( extend the index when shifting and preserve the original data. If `freq` is specified as "infer" then it will be inferred from the freq or inferred_freq attributes of the index. If neither of - those attributes exist, a ValueError is thrown + those attributes exist, a ValueError is thrown. axis : {{0 or 'index', 1 or 'columns', None}}, default None Shift direction. fill_value : object, optional From f7e5448b63b89b3f766dc68ffe39a643446bcb47 Mon Sep 17 00:00:00 2001 From: Iqrar Agalosi Nureyza Date: Thu, 1 Oct 2020 14:03:56 +0700 Subject: [PATCH 2/4] Fix more PR09 errors --- pandas/core/computation/eval.py | 2 +- pandas/core/groupby/groupby.py | 4 ++-- pandas/core/series.py | 2 +- pandas/io/json/_json.py | 2 +- pandas/io/pickle.py | 4 ++-- pandas/io/pytables.py | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/pandas/core/computation/eval.py b/pandas/core/computation/eval.py index 630606b4d8111..a7298c43f411d 100644 --- a/pandas/core/computation/eval.py +++ b/pandas/core/computation/eval.py @@ -212,7 +212,7 @@ def eval( truediv : bool, optional Whether to use true division, like in Python >= 3. - deprecated:: 1.0.0 + deprecated:: 1.0.0. local_dict : dict or None, optional A dictionary of local variables, taken from locals() by default. diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py index f1a61f433fc51..887f50f8dbcd5 100644 --- a/pandas/core/groupby/groupby.py +++ b/pandas/core/groupby/groupby.py @@ -285,7 +285,7 @@ class providing the base-class of operations. .. versionchanged:: 1.1.0 *args - Positional arguments to pass to func + Positional arguments to pass to func. engine : str, default None * ``'cython'`` : Runs the function through C-extensions from cython. * ``'numba'`` : Runs the function through JIT compiled code from numba. @@ -394,7 +394,7 @@ class providing the base-class of operations. .. versionchanged:: 1.1.0 *args - Positional arguments to pass to func + Positional arguments to pass to func. engine : str, default None * ``'cython'`` : Runs the function through C-extensions from cython. * ``'numba'`` : Runs the function through JIT compiled code from numba. diff --git a/pandas/core/series.py b/pandas/core/series.py index d2c702d924136..f2beea5bc7409 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -1458,7 +1458,7 @@ def to_markdown( be parsed by ``fsspec``, e.g., starting "s3://", "gcs://". An error will be raised if providing this argument with a local path or a file-like buffer. See the fsspec and backend storage implementation - docs for the set of allowed keys and values + docs for the set of allowed keys and values. .. versionadded:: 1.2.0 diff --git a/pandas/io/json/_json.py b/pandas/io/json/_json.py index 51bcb4acddd7e..ef684469dffbb 100644 --- a/pandas/io/json/_json.py +++ b/pandas/io/json/_json.py @@ -525,7 +525,7 @@ def read_json( be parsed by ``fsspec``, e.g., starting "s3://", "gcs://". An error will be raised if providing this argument with a local path or a file-like buffer. See the fsspec and backend storage implementation - docs for the set of allowed keys and values + docs for the set of allowed keys and values. .. versionadded:: 1.2.0 diff --git a/pandas/io/pickle.py b/pandas/io/pickle.py index 655deb5ca3779..80baa6f78ddd7 100644 --- a/pandas/io/pickle.py +++ b/pandas/io/pickle.py @@ -49,7 +49,7 @@ def to_pickle( be parsed by ``fsspec``, e.g., starting "s3://", "gcs://". An error will be raised if providing this argument with a local path or a file-like buffer. See the fsspec and backend storage implementation - docs for the set of allowed keys and values + docs for the set of allowed keys and values. .. versionadded:: 1.2.0 @@ -146,7 +146,7 @@ def read_pickle( be parsed by ``fsspec``, e.g., starting "s3://", "gcs://". An error will be raised if providing this argument with a local path or a file-like buffer. See the fsspec and backend storage implementation - docs for the set of allowed keys and values + docs for the set of allowed keys and values. .. versionadded:: 1.2.0 diff --git a/pandas/io/pytables.py b/pandas/io/pytables.py index d62480baed71e..4882e9888e3b0 100644 --- a/pandas/io/pytables.py +++ b/pandas/io/pytables.py @@ -616,7 +616,7 @@ def keys(self, include: str = "pandas") -> List[str]: include : str, default 'pandas' When kind equals 'pandas' return pandas objects - When kind equals 'native' return native HDF5 Table objects + When kind equals 'native' return native HDF5 Table objects. .. versionadded:: 1.1.0 From ac6b617e1caa2d5e7629859c152e15370409bfda Mon Sep 17 00:00:00 2001 From: Iqrar Agalosi Nureyza Date: Fri, 2 Oct 2020 07:54:33 +0700 Subject: [PATCH 3/4] Remove dot and add blank line --- pandas/core/computation/eval.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandas/core/computation/eval.py b/pandas/core/computation/eval.py index a7298c43f411d..913f135b449f3 100644 --- a/pandas/core/computation/eval.py +++ b/pandas/core/computation/eval.py @@ -212,7 +212,8 @@ def eval( truediv : bool, optional Whether to use true division, like in Python >= 3. - deprecated:: 1.0.0. + + .. deprecated:: 1.0.0 local_dict : dict or None, optional A dictionary of local variables, taken from locals() by default. From abe14d92aa0ae11ad9e72c77dd24ba2c8c8de2e4 Mon Sep 17 00:00:00 2001 From: Iqrar Agalosi Nureyza Date: Fri, 2 Oct 2020 23:46:02 +0700 Subject: [PATCH 4/4] Add a period at the end of the line --- pandas/io/pytables.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/io/pytables.py b/pandas/io/pytables.py index 4882e9888e3b0..d0ea327a65a1d 100644 --- a/pandas/io/pytables.py +++ b/pandas/io/pytables.py @@ -615,7 +615,7 @@ def keys(self, include: str = "pandas") -> List[str]: ---------- include : str, default 'pandas' - When kind equals 'pandas' return pandas objects + When kind equals 'pandas' return pandas objects. When kind equals 'native' return native HDF5 Table objects. .. versionadded:: 1.1.0