Skip to content

DOC: Make document merge_cells=columns in to_excel #60277

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 13, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions pandas/core/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -2211,8 +2211,9 @@ def to_excel(
via the options ``io.excel.xlsx.writer`` or
``io.excel.xlsm.writer``.

merge_cells : bool, default True
Write MultiIndex and Hierarchical Rows as merged cells.
merge_cells : bool or 'columns', default False
Write MultiIndex and Hierarchical Rows as merged cells if True.
Merge MultiIndex column header cells only if 'columns'.
{encoding_parameter}
inf_rep : str, default 'inf'
Representation for infinity (there is no native representation for
Expand Down
Loading