From 2329ced16644ab8de7516fd310b8b78f7f44f00b Mon Sep 17 00:00:00 2001 From: Mathew George Date: Wed, 28 Aug 2019 22:55:55 +0530 Subject: [PATCH 1/7] Fixing GL02 on pandas.IntervalIndex.to_tuples --- pandas/core/indexes/interval.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandas/core/indexes/interval.py b/pandas/core/indexes/interval.py index 021ff5fb46276..6b0081c6a2ff5 100644 --- a/pandas/core/indexes/interval.py +++ b/pandas/core/indexes/interval.py @@ -331,7 +331,8 @@ def __contains__(self, key): >>> idx.to_tuples() Index([(0.0, 1.0), (nan, nan), (2.0, 3.0)], dtype='object') >>> idx.to_tuples(na_tuple=False) - Index([(0.0, 1.0), nan, (2.0, 3.0)], dtype='object')""", + Index([(0.0, 1.0), nan, (2.0, 3.0)], dtype='object') + """, ) ) def to_tuples(self, na_tuple=True): From 19993fd2c87f0ed9bf2d98e8af1658daa593ba24 Mon Sep 17 00:00:00 2001 From: Mathew George Date: Wed, 28 Aug 2019 23:26:22 +0530 Subject: [PATCH 2/7] GL01 in read_sql_query --- pandas/io/sql.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandas/io/sql.py b/pandas/io/sql.py index f1f52a9198d29..72df00fd4c5a1 100644 --- a/pandas/io/sql.py +++ b/pandas/io/sql.py @@ -269,7 +269,8 @@ def read_sql_query( parse_dates=None, chunksize=None, ): - """Read SQL query into a DataFrame. + """ + Read SQL query into a DataFrame. Returns a DataFrame corresponding to the result set of the query string. Optionally provide an `index_col` parameter to use one of the From 93318093064d9f5babea0e731d48c35c5dc7b7ff Mon Sep 17 00:00:00 2001 From: Mathew George Date: Wed, 28 Aug 2019 23:32:13 +0530 Subject: [PATCH 3/7] Fixing StataReader.data GL01 --- pandas/io/stata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/io/stata.py b/pandas/io/stata.py index 69bafc7749258..31fdaa5cc6735 100644 --- a/pandas/io/stata.py +++ b/pandas/io/stata.py @@ -138,7 +138,7 @@ _iterator_params, ) -_data_method_doc = """\ +_data_method_doc = """ Read observations from Stata file, converting them into a dataframe .. deprecated:: From a3961eb901167c752cc0b70358b522300a4f7ebf Mon Sep 17 00:00:00 2001 From: Mathew George Date: Wed, 28 Aug 2019 23:33:56 +0530 Subject: [PATCH 4/7] fixed GL01 in pandas.plotting.lag_plot --- pandas/plotting/_misc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandas/plotting/_misc.py b/pandas/plotting/_misc.py index 1cba0e7354182..cf02806e86599 100644 --- a/pandas/plotting/_misc.py +++ b/pandas/plotting/_misc.py @@ -392,7 +392,8 @@ def parallel_coordinates( def lag_plot(series, lag=1, ax=None, **kwds): - """Lag plot for time series. + """ + Lag plot for time series. Parameters ---------- From 9423ec0e8b82db57bca7b57364cb9f9e72acd3ef Mon Sep 17 00:00:00 2001 From: Mathew George Date: Wed, 28 Aug 2019 23:35:03 +0530 Subject: [PATCH 5/7] Fixed GL01 in pandas.plotting.parallel_coordinates --- pandas/plotting/_misc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandas/plotting/_misc.py b/pandas/plotting/_misc.py index cf02806e86599..7ed0ffc6d0115 100644 --- a/pandas/plotting/_misc.py +++ b/pandas/plotting/_misc.py @@ -329,7 +329,8 @@ def parallel_coordinates( sort_labels=False, **kwds ): - """Parallel coordinates plotting. + """ + Parallel coordinates plotting. Parameters ---------- From 0fce209911a5a4dcdeb6b3f0e5a7dc62c0d32a82 Mon Sep 17 00:00:00 2001 From: Mathew George Date: Wed, 28 Aug 2019 23:36:47 +0530 Subject: [PATCH 6/7] Fixed GL01 in pandas.testing.assert_series_equal --- pandas/util/testing.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandas/util/testing.py b/pandas/util/testing.py index a8f0d0da52e1f..daafa2041703e 100644 --- a/pandas/util/testing.py +++ b/pandas/util/testing.py @@ -1081,7 +1081,8 @@ def assert_series_equal( check_categorical=True, obj="Series", ): - """Check that left and right Series are equal. + """ + Check that left and right Series are equal. Parameters ---------- From 0d35087b78cc846cff9ddb36b2ebf26ccc33851f Mon Sep 17 00:00:00 2001 From: Mathew George Date: Wed, 28 Aug 2019 23:37:39 +0530 Subject: [PATCH 7/7] Fixed GL01 in pandas.testing.assert_index_equal --- pandas/util/testing.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandas/util/testing.py b/pandas/util/testing.py index daafa2041703e..0d543f891a5f6 100644 --- a/pandas/util/testing.py +++ b/pandas/util/testing.py @@ -580,7 +580,8 @@ def assert_index_equal( check_categorical: bool = True, obj: str = "Index", ) -> None: - """Check that left and right Index are equal. + """ + Check that left and right Index are equal. Parameters ----------