How to set font-size of values in each cell of dataframe?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2019 02:43 AM
I am working on pandas and python.After processing a particular dataframe in my program , I am appending that dataframe below an existing Excel file. Now problem is my excel has font size of 11 pt but dataframe has font size of 12 pt.I want to set font-size in my dataframe to be 11 pt while writing method df.to_excel. Is there any way to do this task?Simply I want to set font size of my dataframe so that while writing dataframe below an existing excel font size will be matched.
- Labels:
-
Python
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2019 03:40 AM
Hi @vishavgupta988,
Please go through the below pandas docs,
https://pandas.pydata.org/pandas-docs/stable/user_guide/style.html#Table-styles
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2021 09:29 AM