Pandas has a great feature, where you can write your dataframe to a table in SQL.
df.to_sql(con=cnx, name='some_table_name', if_exists='replace', flavor='mysql', index=False)
Is there a way to make a temporary table this way?
There is nothing in the documentation as far as I can tell.