We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46ed6b1 commit 03ea90fCopy full SHA for 03ea90f
doc/source/user_guide/io.rst
@@ -3760,6 +3760,13 @@ The look and feel of Excel worksheets created from pandas can be modified using
3760
to create styled excel files. For documentation on styling spreadsheets, see
3761
`here <https://pandas.pydata.org/docs/user_guide/style.html#Export-to-Excel>`__.
3762
3763
+To make the header row bold when exporting to Excel:
3764
+
3765
+.. code-block:: python
3766
3767
+ df.style.applymap_index(lambda v: "font-weight: bold;", axis="columns").to_excel("out.xlsx")
3768
3769
+For more advanced styling with borders:
3770
3771
.. code-block:: python
3772
0 commit comments