I have an non-empty Excel-file where I want to insert a dataframe. What I tried:
import pandas as pd
import numpy as np
path = r'C:\Template_example.xlsx'
data = np.random.randn(5,10)
df = pd.DataFrame(data = data)
description = df.describe()
description.to_excel(path, sheet_name='Table1', startrow = 12, startcol = 2)
It exports the dataframe to the exact specified place. BUT: Everything else in the file is deleted. I want to keep everything. On the specified place, I have left empty rows and columns for that dataframe... How can I only "append" it to that place, in a way like copy and paste, without deleting everything else?