What should be the best way to dump a pandas dataframe into a sql database? Is it better to first convert the dataframe into a csv file then dump the csv file or write into the sql database line by line?
检查一下: http ://pandas.pydata.org/pandas-docs/version/0.14.1/genic/pandas.DataFrame.to_sql.html最快的方法是将它与sqlAlchemy一起使用,而不是与旧版DBAPI2一起使用。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.