pandas.DataFrame.to_sql() or cursor.copy_from() functionality
tomasjanikds opened this issue · comments
Tomas Janik commented
Is there any simple way on how to write pandas DataFrame (or csv file) into database?
When writing dataframes to Postgres usually I use either pandas.DataFrame.to_sql()
or cursor.copy_from()
in psycopg2.
However, I was not able to use the similar approach with presto. Is there any way of how to achieve this?