Skip to content
3 changes: 2 additions & 1 deletion pandas/core/indexes/interval.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
3 changes: 2 additions & 1 deletion pandas/io/sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pandas/io/stata.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
_iterator_params,
)

_data_method_doc = """\
_data_method_doc = """
Read observations from Stata file, converting them into a dataframe

.. deprecated::
Expand Down
6 changes: 4 additions & 2 deletions pandas/plotting/_misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,8 @@ def parallel_coordinates(
sort_labels=False,
**kwds
):
"""Parallel coordinates plotting.
"""
Parallel coordinates plotting.

Parameters
----------
Expand Down Expand Up @@ -392,7 +393,8 @@ def parallel_coordinates(


def lag_plot(series, lag=1, ax=None, **kwds):
"""Lag plot for time series.
"""
Lag plot for time series.

Parameters
----------
Expand Down
6 changes: 4 additions & 2 deletions pandas/util/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
----------
Expand Down Expand Up @@ -1081,7 +1082,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
----------
Expand Down