Tuesday 13 July 2021

Read an excel file with Python and modify it without changing the style

I have a excel file which has specific format, font and color etc. I would like to read it using Python libraries like pandas (pd.read_excel) and just modify a few cells without affecting the style. Is it possible? Currently, when I read and write using pandas, the style changes and it seems difficult to make the complex style in Python again.

Is there a way to load and store the format/style of Excel file when we are reading it, to be applied when it is being saved? I just want to modify the value of few cells.



from Read an excel file with Python and modify it without changing the style

No comments:

Post a Comment