1

I am using StyleFrame's to_excel function to save the dataframe df in .xlsx file. Below is my code which works fine:

 import pandas as pd
 from StyleFrame import StyleFrame, Styler

 bgStyle = Styler(bg_color='yellow')
 sf = StyleFrame(df)
 sf.apply_style_by_indexes([1,2], styler_obj=bgStyle, overwrite_default_style=False)

 sf.to_excel('output.xlsx').save()

Since my dataframe is big , so to speed up the writing and saving process , I want to use engine='xlsxwriter' but StyleFrame's to_excel function doesnt have engine as a parameter.

So how can I speed up the process of writing and saving df into .xlsx while using Styleframe for styling?

Anudocs
  • 686
  • 1
  • 13
  • 54

0 Answers0