We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a0148a4 commit e64a6c7Copy full SHA for e64a6c7
pandas/core/generic.py
@@ -2179,6 +2179,12 @@ def _repr_data_resource_(self):
2179
... df1.to_excel(writer, sheet_name='Sheet_name_1')
2180
... df2.to_excel(writer, sheet_name='Sheet_name_2')
2181
2182
+ ExcelWriter can also be used to append to an existing Excel file:
2183
+
2184
+ >>> with pd.ExcelWriter('output.xlsx',
2185
+ ... mode='a') as writer: # doctest: +SKIP
2186
+ ... df.to_excel(writer, sheet_name='Sheet_name_3')
2187
2188
To set the library that is used to write the Excel file,
2189
you can pass the `engine` keyword (the default engine is
2190
automatically chosen depending on the file extension):
0 commit comments