Skip to content

Commit

Permalink
DOC: Make document merge_cells=columns in to_excel (#60277)
Browse files Browse the repository at this point in the history
* DOC: Make document merge_cells=columns in to_excel

* DOC: Make document merge_cells=columns in to_excel

* Modify the description
  • Loading branch information
ZKaoChi authored Nov 13, 2024
1 parent 994cab4 commit 61f800d
Showing 1 changed file with 3 additions and 2 deletions.
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
If True, write MultiIndex index and columns as merged cells.
If 'columns', merge MultiIndex column cells only.
{encoding_parameter}
inf_rep : str, default 'inf'
Representation for infinity (there is no native representation for
Expand Down

0 comments on commit 61f800d

Please sign in to comment.