Skip to content

Commit

Permalink
DOC: fix EX03 in pandas.ExcelWriter (pandas-dev#56884)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanx749 authored and pmhatre1 committed May 7, 2024
1 parent a79624d commit 9131862
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion ci/code_checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.Timestamp.ceil \
pandas.Timestamp.floor \
pandas.Timestamp.round \
pandas.ExcelWriter \
pandas.read_json \
pandas.io.json.build_table_schema \
pandas.io.formats.style.Styler.to_latex \
Expand Down
7 changes: 4 additions & 3 deletions pandas/io/excel/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -935,7 +935,7 @@ class ExcelWriter(Generic[_WorkbookT]):
is installed otherwise `openpyxl <https://pypi.org/project/openpyxl/>`__
* `odswriter <https://pypi.org/project/odswriter/>`__ for ods files
See ``DataFrame.to_excel`` for typical usage.
See :meth:`DataFrame.to_excel` for typical usage.
The writer should be used as a context manager. Otherwise, call `close()` to save
and close any opened file handles.
Expand Down Expand Up @@ -1031,7 +1031,7 @@ class ExcelWriter(Generic[_WorkbookT]):
Here, the `if_sheet_exists` parameter can be set to replace a sheet if it
already exists:
>>> with ExcelWriter(
>>> with pd.ExcelWriter(
... "path_to_file.xlsx",
... mode="a",
... engine="openpyxl",
Expand All @@ -1042,7 +1042,8 @@ class ExcelWriter(Generic[_WorkbookT]):
You can also write multiple DataFrames to a single sheet. Note that the
``if_sheet_exists`` parameter needs to be set to ``overlay``:
>>> with ExcelWriter("path_to_file.xlsx",
>>> with pd.ExcelWriter(
... "path_to_file.xlsx",
... mode="a",
... engine="openpyxl",
... if_sheet_exists="overlay",
Expand Down

0 comments on commit 9131862

Please sign in to comment.