I am using below code to export DataFrame to excel using pyexcelerate
:
from pyexcelerate import Workbook
'''
code to populate DataFrame
'''
excel = [df.columns] + list(df.values)
wb = Workbook()
wb.new_sheet('Sheet1', data=excel)
wb.save(os.path.join(os.getcwd(), folder_name, file_name))
Everything works fine. Now, I would like to set Excel table format using Pyexcelerate. But, could not find the documentation on how to do that.
May I know how to set styles with Pyexcelerate
?
I would like to stick with Pyexcelerate as project is developed with this library and also because of project constraint.