We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 994cab4 commit 61f800dCopy full SHA for 61f800d
pandas/core/generic.py
@@ -2211,8 +2211,9 @@ def to_excel(
2211
via the options ``io.excel.xlsx.writer`` or
2212
``io.excel.xlsm.writer``.
2213
2214
- merge_cells : bool, default True
2215
- 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.
2216
+ If 'columns', merge MultiIndex column cells only.
2217
{encoding_parameter}
2218
inf_rep : str, default 'inf'
2219
Representation for infinity (there is no native representation for
0 commit comments