pandas.DataFrame.to_sql — pandas 1.3.5 documentation
https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.to_sql.htmlpandas.DataFrame.to_sql¶ DataFrame. to_sql (name, con, schema = None, if_exists = 'fail', index = True, index_label = None, chunksize = None, dtype = None, method = None) [source] ¶ Write records stored in a DataFrame to a SQL database. Databases supported by SQLAlchemy are supported. Tables can be newly created, appended to, or overwritten.