We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e040ab0 commit 76edcdeCopy full SHA for 76edcde
pandas/io/excel.py
@@ -826,6 +826,15 @@ class ExcelWriter(object):
826
-----
827
For compatibility with CSV writers, ExcelWriter serializes lists
828
and dicts to strings before writing.
829
+
830
+ Examples
831
+ --------
832
+ In order to write separate DataFrames to separate sheets
833
+ in a single Excel file, one can pass an ExcelWriter.
834
835
+ >>> with ExcelWriter('path_to_file.xlsx') as writer:
836
+ ... df1.to_excel(writer, sheet_name='Sheet1')
837
+ ... df2.to_excel(writer, sheet_name='Sheet2')
838
"""
839
# Defining an ExcelWriter implementation (see abstract methods for more...)
840
0 commit comments