File tree 1 file changed +19
-2
lines changed
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.
189
189
190
190
Changes to Excel with ``MultiIndex``
191
191
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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
194
194
be read back with no loss of information by specifying which columns/rows make up the ``MultiIndex``
195
195
in the `header` and `index_col` parameters (:issue:`4679`)
196
196
@@ -214,6 +214,23 @@ in the `header` and `index_col` parameters (:issue:`4679`)
214
214
import os
215
215
os.remove('test.xlsx')
216
216
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
+
217
234
See the :ref:`documentation <io.excel>` for more details.
218
235
219
236
.. _whatsnew_0170.enhancements.other:
You can’t perform that action at this time.
0 commit comments