Skip to content

Commit 61f800d

Browse files
authored
DOC: Make document merge_cells=columns in to_excel (#60277)
* DOC: Make document merge_cells=columns in to_excel * DOC: Make document merge_cells=columns in to_excel * Modify the description
1 parent 994cab4 commit 61f800d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pandas/core/generic.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -2211,8 +2211,9 @@ def to_excel(
22112211
via the options ``io.excel.xlsx.writer`` or
22122212
``io.excel.xlsm.writer``.
22132213
2214-
merge_cells : bool, default True
2215-
Write MultiIndex and Hierarchical Rows as merged cells.
2214+
merge_cells : bool or 'columns', default False
2215+
If True, write MultiIndex index and columns as merged cells.
2216+
If 'columns', merge MultiIndex column cells only.
22162217
{encoding_parameter}
22172218
inf_rep : str, default 'inf'
22182219
Representation for infinity (there is no native representation for

0 commit comments

Comments
 (0)