File tree Expand file tree Collapse file tree 1 file changed +19
-2
lines changed Expand file tree Collapse file tree 1 file changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -189,8 +189,8 @@ See the :ref:`docs <io.sas>` for more details.
189189
190190Changes to Excel with ``MultiIndex``
191191^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
192- In version 0.16.2 a ``DataFrame`` with ``MultiIndex`` columns could not be written to Excel via `to_excel`.
193- That functionality has been added (:issue:`10564`), along with updating `read_excel` so that the data can
192+ In version 0.16.2 a ``DataFrame`` with ``MultiIndex`` columns could not be written to Excel via `` to_excel` `.
193+ That functionality has been added (:issue:`10564`), along with updating `` read_excel` ` so that the data can
194194be read back with no loss of information by specifying which columns/rows make up the ``MultiIndex``
195195in the `header` and `index_col` parameters (:issue:`4679`)
196196
@@ -214,6 +214,23 @@ in the `header` and `index_col` parameters (:issue:`4679`)
214214 import os
215215 os.remove('test.xlsx')
216216
217+ Previously, it was necessary to specifying the ``has_index_names`` argument in ``read_excel``
218+ if the serialized data had index names. For version 0.17 the ouptput format of ``to_excel``
219+ has been changed to make this keyword unnecessary - the change is shown below.
220+
221+ **Old**
222+
223+ .. image:: _static/old-excel-index.png
224+
225+ **New**
226+
227+ .. image:: _static/new-excel-index.png
228+
229+ .. warning::
230+
231+ Excel files saved in version 0.16.2 or prior that had index names will still able to be read in,
232+ but the ``has_index_names`` argument must specified to ``True``.
233+
217234See the :ref:`documentation <io.excel>` for more details.
218235
219236.. _whatsnew_0170.enhancements.other:
You can’t perform that action at this time.
0 commit comments