I have a table which is the output of a sql query and I want this table to be pasted into a specific cell of an excel (say B10).Using openpyxl I used to do
ws_hi["c31"].value = output_total.iloc[0]
(ws_hi is the excel sheet and output_total is the variable which holds the data I wanna copy)
which works fine for a single value but not for a table. Need help in exporting if output_total is a 4*5 table
FYI output_total is dataframe obtained by
output_total = pd.read_sql_query(text(query), engine1)
thanks!