Skip to content

Commit 4e40bf5

Browse files
DOC: Fix identation issues with docstrings
1 parent 7ed8fb5 commit 4e40bf5

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

pandas/core/generic.py

+3-5
Original file line numberDiff line numberDiff line change
@@ -2127,11 +2127,10 @@ def _repr_data_resource_(self):
21272127
storage_options_versionadded="1.2.0",
21282128
extra_parameters=textwrap.dedent(
21292129
"""\
2130-
engine_kwargs : dict, optional
2131-
Arbitrary keyword arguments passed to excel engine.
2132-
"""
2130+
engine_kwargs : dict, optional
2131+
Arbitrary keyword arguments passed to excel engine.
2132+
"""
21332133
),
2134-
extra_examples="",
21352134
)
21362135
def to_excel(
21372136
self,
@@ -2263,7 +2262,6 @@ def to_excel(
22632262
automatically chosen depending on the file extension):
22642263
22652264
>>> df1.to_excel("output1.xlsx", engine="xlsxwriter") # doctest: +SKIP
2266-
{extra_examples}
22672265
"""
22682266
if engine_kwargs is None:
22692267
engine_kwargs = {}

pandas/io/formats/style.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ def set_tooltips(
539539
storage_options_versionadded="1.5.0",
540540
extra_parameters="",
541541
extra_examples=textwrap.dedent(
542-
"""\
542+
"""
543543
If you wish to write excel notes to the workbook, you can do so by
544544
passing a DataFrame to ``set_tooltips``. This process is independent
545545
from writing data to the workbook, therefore both DataFrames can have

0 commit comments

Comments
 (0)