Skip to content

Commit d1b05e8

Browse files
committed
chore: Fixed documentation
1 parent 6bc6952 commit d1b05e8

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

pandas/core/generic.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2240,9 +2240,10 @@ def to_excel(
22402240
{storage_options}
22412241
22422242
.. versionadded:: {storage_options_versionadded}
2243-
autofilter : bool, default False
2244-
If True, add automatic filters to all columns
22452243
{extra_parameters}
2244+
autofilter : bool, default False
2245+
If True, add automatic filters to all columns.
2246+
22462247
See Also
22472248
--------
22482249
to_csv : Write DataFrame to a comma-separated values (csv) file.

pandas/io/formats/style.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -593,6 +593,7 @@ def to_excel(
593593
verbose: bool = True,
594594
freeze_panes: tuple[int, int] | None = None,
595595
storage_options: StorageOptions | None = None,
596+
autofilter: bool = False,
596597
) -> None:
597598
from pandas.io.formats.excel import ExcelFormatter
598599

@@ -606,6 +607,7 @@ def to_excel(
606607
index_label=index_label,
607608
merge_cells=merge_cells,
608609
inf_rep=inf_rep,
610+
autofilter=autofilter,
609611
)
610612
formatter.write(
611613
excel_writer,

0 commit comments

Comments
 (0)