Re: Testing of a fast method to bulk insert a Pandas DataFrame into Postgres
От | Adrian Klaver |
---|---|
Тема | Re: Testing of a fast method to bulk insert a Pandas DataFrame into Postgres |
Дата | |
Msg-id | a6105435-6bfd-8776-fe38-13ffab752f23@aklaver.com обсуждение исходный текст |
Ответ на | Testing of a fast method to bulk insert a Pandas DataFrame into Postgres (Shaozhong SHI <shishaozhong@gmail.com>) |
Ответы |
Re: Testing of a fast method to bulk insert a Pandas DataFrame into Postgres
|
Список | pgsql-general |
On 10/4/21 8:44 AM, Shaozhong SHI wrote: > > 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? method is a legitimate keyword: https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.to_sql.html?highlight=to_sql#pandas.DataFrame.to_sql So there must be something about how you used it. Pandas version? The actual code you used when the error occurred? > > > Regards, > > > David > -- Adrian Klaver adrian.klaver@aklaver.com
В списке pgsql-general по дате отправления: