I have a python dataframe with various data types for each column. Usually I export it to a regular csv file using pandas.DataFrame.to_csv
then open it with Excel, copy its content and paste it in a well-formatted template (xltx) file.
I was wondering If I can write the dataframe directly to the template so the data can be automatically formatted without the extra steps.
What's the best way to do so?