prestodb / presto-python-client

Python DB-API client for Presto

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pandas.DataFrame.to_sql() or cursor.copy_from() functionality

tomasjanikds opened this issue · comments

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?