I want to write a dataframe to an existing sqlite (or mysql) table and sometimes the dataframe will contain a new column that is not yet present in the database. What do I need
if there are extra columns in your dataframe then you need to manually add that column to the database table for the df.to_sql() to work.