cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to set font-size of values in each cell of dataframe?

vishavgupta988
New Contributor

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.

2 REPLIES 2

shyam_9
Databricks Employee
Databricks Employee

Hi @vishavgupta988,

Please go through the below pandas docs,

https://pandas.pydata.org/pandas-docs/stable/user_guide/style.html#Table-styles

DominicFHelms
New Contributor II

I like sharp fonts.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group