You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ENH: Change DataFrame.to_excel to output unformatted excel file (#54302)
* Updated default styling logic for to_excel and added unit tests.
* Adding documentation to the Pandas User Guide.
* Updating whatsnew
* Fixing merge conflict.
* Updating user guide documentation.
* Fixing syntax error.
* Updating implementation based on reviewer feedback.
* Updating documentation.
Copy file name to clipboardExpand all lines: doc/source/user_guide/io.rst
+14
Original file line number
Diff line number
Diff line change
@@ -3908,6 +3908,20 @@ The look and feel of Excel worksheets created from pandas can be modified using
3908
3908
* ``float_format`` : Format string for floating point numbers (default ``None``).
3909
3909
* ``freeze_panes`` : A tuple of two integers representing the bottommost row and rightmost column to freeze. Each of these parameters is one-based, so (1, 1) will freeze the first row and first column (default ``None``).
3910
3910
3911
+
.. note::
3912
+
3913
+
As of Pandas 3.0, by default spreadsheets created with the ``to_excel`` method
3914
+
will not contain any styling. Users wishing to bold text, add bordered styles,
3915
+
etc in a worksheet output by ``to_excel`` can do so by using :meth:`Styler.to_excel`
3916
+
to create styled excel files. For documentation on styling spreadsheets, see
Copy file name to clipboardExpand all lines: doc/source/whatsnew/v3.0.0.rst
+1
Original file line number
Diff line number
Diff line change
@@ -91,6 +91,7 @@ Other API changes
91
91
- 3rd party ``py.path`` objects are no longer explicitly supported in IO methods. Use :py:class:`pathlib.Path` objects instead (:issue:`57091`)
92
92
- :attr:`MultiIndex.codes`, :attr:`MultiIndex.levels`, and :attr:`MultiIndex.names` now returns a ``tuple`` instead of a ``FrozenList`` (:issue:`53531`)
93
93
- Made ``dtype`` a required argument in :meth:`ExtensionArray._from_sequence_of_strings` (:issue:`56519`)
94
+
- Updated :meth:`DataFrame.to_excel` so that the output spreadsheet has no styling. Custom styling can still be done using :meth:`Styler.to_excel` (:issue:`54154`)
94
95
- pickle and HDF (``.h5``) files created with Python 2 are no longer explicitly supported (:issue:`57387`)
0 commit comments