File tree 2 files changed +13
-4
lines changed
2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -2123,11 +2123,13 @@ def _repr_data_resource_(self):
2123
2123
klass = "object" ,
2124
2124
storage_options = _shared_docs ["storage_options" ],
2125
2125
storage_options_versionadded = "1.2.0" ,
2126
+ encoding_parameter = "" ,
2127
+ verbose_parameter = "" ,
2126
2128
extra_parameters = textwrap .dedent (
2127
2129
"""\
2128
2130
engine_kwargs : dict, optional
2129
2131
Arbitrary keyword arguments passed to excel engine.
2130
- """
2132
+ """
2131
2133
),
2132
2134
)
2133
2135
def to_excel (
@@ -2196,9 +2198,11 @@ def to_excel(
2196
2198
2197
2199
merge_cells : bool, default True
2198
2200
Write MultiIndex and Hierarchical Rows as merged cells.
2201
+ {encoding_parameter}
2199
2202
inf_rep : str, default 'inf'
2200
2203
Representation for infinity (there is no native representation for
2201
2204
infinity in Excel).
2205
+ {verbose_parameter}
2202
2206
freeze_panes : tuple of int (length 2), optional
2203
2207
Specifies the one-based bottommost row and rightmost column that
2204
2208
is to be frozen.
Original file line number Diff line number Diff line change @@ -553,14 +553,19 @@ def set_tooltips(
553
553
klass = "Styler" ,
554
554
storage_options = _shared_docs ["storage_options" ],
555
555
storage_options_versionadded = "1.5.0" ,
556
- extra_parameters = textwrap .dedent (
556
+ encoding_parameter = textwrap .dedent (
557
557
"""\
558
558
encoding : str or None, default None
559
559
Unused parameter, present for compatibility.
560
+ """
561
+ ),
562
+ verbose_parameter = textwrap .dedent (
563
+ """\
560
564
verbose : str, default True
561
565
Optional unused parameter, present for compatibility.
562
566
"""
563
567
),
568
+ extra_parameters = "" ,
564
569
)
565
570
def to_excel (
566
571
self ,
@@ -576,11 +581,11 @@ def to_excel(
576
581
startcol : int = 0 ,
577
582
engine : str | None = None ,
578
583
merge_cells : ExcelWriterMergeCells = True ,
584
+ encoding : str | None = None ,
579
585
inf_rep : str = "inf" ,
586
+ verbose : bool = True ,
580
587
freeze_panes : tuple [int , int ] | None = None ,
581
588
storage_options : StorageOptions | None = None ,
582
- encoding : str | None = None ,
583
- verbose : bool = True ,
584
589
) -> None :
585
590
from pandas .io .formats .excel import ExcelFormatter
586
591
You can’t perform that action at this time.
0 commit comments