Skip to content

Commit eb2000f

Browse files
committed
add storage_option to the parameters of to_excel
1 parent f97b904 commit eb2000f

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

pandas/io/formats/style.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
IndexLabel,
2727
Level,
2828
Scalar,
29+
StorageOptions,
2930
WriteBuffer,
3031
)
3132
from pandas.compat._optional import import_optional_dependency
@@ -46,6 +47,7 @@
4647
Series,
4748
)
4849
from pandas.core.generic import NDFrame
50+
from pandas.core.shared_docs import _shared_docs
4951

5052
from pandas.io.formats.format import save_to_buffer
5153

@@ -542,7 +544,11 @@ def set_tooltips(
542544

543545
return self
544546

545-
@doc(NDFrame.to_excel, klass="Styler")
547+
@doc(
548+
NDFrame.to_excel,
549+
klass="Styler",
550+
storage_options=_shared_docs["storage_options"],
551+
)
546552
def to_excel(
547553
self,
548554
excel_writer,
@@ -561,6 +567,7 @@ def to_excel(
561567
inf_rep: str = "inf",
562568
verbose: bool = True,
563569
freeze_panes: tuple[int, int] | None = None,
570+
storage_options: StorageOptions = None,
564571
) -> None:
565572

566573
from pandas.io.formats.excel import ExcelFormatter
@@ -583,6 +590,7 @@ def to_excel(
583590
startcol=startcol,
584591
freeze_panes=freeze_panes,
585592
engine=engine,
593+
storage_options=storage_options,
586594
)
587595

588596
def to_latex(

0 commit comments

Comments
 (0)