Skip to content

Commit ae58b55

Browse files
killerontherun1proost
authored andcommitted
Solving GL01,GL02 in pandas.Interval and a few mentioned in the comments (pandas-dev#28197)
1 parent 015d03a commit ae58b55

File tree

5 files changed

+13
-7
lines changed

5 files changed

+13
-7
lines changed

pandas/core/indexes/interval.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,8 @@ def __contains__(self, key):
331331
>>> idx.to_tuples()
332332
Index([(0.0, 1.0), (nan, nan), (2.0, 3.0)], dtype='object')
333333
>>> idx.to_tuples(na_tuple=False)
334-
Index([(0.0, 1.0), nan, (2.0, 3.0)], dtype='object')""",
334+
Index([(0.0, 1.0), nan, (2.0, 3.0)], dtype='object')
335+
""",
335336
)
336337
)
337338
def to_tuples(self, na_tuple=True):

pandas/io/sql.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,8 @@ def read_sql_query(
269269
parse_dates=None,
270270
chunksize=None,
271271
):
272-
"""Read SQL query into a DataFrame.
272+
"""
273+
Read SQL query into a DataFrame.
273274
274275
Returns a DataFrame corresponding to the result set of the query
275276
string. Optionally provide an `index_col` parameter to use one of the

pandas/io/stata.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138
_iterator_params,
139139
)
140140

141-
_data_method_doc = """\
141+
_data_method_doc = """
142142
Read observations from Stata file, converting them into a dataframe
143143
144144
.. deprecated::

pandas/plotting/_misc.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,8 @@ def parallel_coordinates(
329329
sort_labels=False,
330330
**kwds
331331
):
332-
"""Parallel coordinates plotting.
332+
"""
333+
Parallel coordinates plotting.
333334
334335
Parameters
335336
----------
@@ -392,7 +393,8 @@ def parallel_coordinates(
392393

393394

394395
def lag_plot(series, lag=1, ax=None, **kwds):
395-
"""Lag plot for time series.
396+
"""
397+
Lag plot for time series.
396398
397399
Parameters
398400
----------

pandas/util/testing.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,8 @@ def assert_index_equal(
580580
check_categorical: bool = True,
581581
obj: str = "Index",
582582
) -> None:
583-
"""Check that left and right Index are equal.
583+
"""
584+
Check that left and right Index are equal.
584585
585586
Parameters
586587
----------
@@ -1081,7 +1082,8 @@ def assert_series_equal(
10811082
check_categorical=True,
10821083
obj="Series",
10831084
):
1084-
"""Check that left and right Series are equal.
1085+
"""
1086+
Check that left and right Series are equal.
10851087
10861088
Parameters
10871089
----------

0 commit comments

Comments
 (0)