I have a fairly big pandas dataframe - 50 or so headers and a few hundred thousand rows of data - and I\'m looking to transfer this data to a database using the
dataframe - 50
You can try this:
cursor.executemany(sql_str, your_dataframe.values.tolist())
Hope it helps.