Testing of a fast method to bulk insert a Pandas DataFrame into Postgres

From: Shaozhong SHI <shishaozhong(at)gmail(dot)com>
To: pgsql-sql <pgsql-sql(at)lists(dot)postgresql(dot)org>
Subject: Testing of a fast method to bulk insert a Pandas DataFrame into Postgres
Date: 2021-10-04 15:43:42
Message-ID: CA+i5JwYnUBCKSnWn96OvtF66oGYHNGefMd5V_Bgceu=4PtcDNw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-sql

Has anyone tested this one?
A Fast Method to Bulk Insert a Pandas DataFrame into Postgres · Ellis
Valentiner
<https://ellisvalentiner.com/post/a-fast-method-to-insert-a-pandas-dataframe-into-postgres/>

I tried psql_insert_copy method, but I got the following error message.

to_sql() got an unexpected keyword argument 'method'

Can anyone shed light on this?

Regards,

David

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Shaozhong SHI 2021-10-04 15:44:28 Testing of a fast method to bulk insert a Pandas DataFrame into Postgres
Previous Message Adrian Klaver 2021-10-04 15:12:45 Re: Problem in Storing Satellite imagey(Geotiff file)

Browse pgsql-sql by date

  From Date Subject
Next Message Shaozhong SHI 2021-10-04 15:44:28 Testing of a fast method to bulk insert a Pandas DataFrame into Postgres
Previous Message Francisco Olarte 2021-10-04 11:24:43 Re: How to set up temporary path for starting up psql in any folder?