Skip to main content
The 2024 Developer Survey results are live! See the results
Pm740's user avatar
Pm740's user avatar
Pm740's user avatar
Pm740
  • Member for 6 years, 7 months
  • Last seen this week
  • Germany
revised
How to upload pandas data frames fast with psycopg3?
[Edit removed during grace period]
Loading…
Loading…
comment
How to write DataFrame to postgres table
Is there a solution for psycopg3/psycopg? I tried with cur.copy(f'COPY "{table_name}" FROM STDIN WITH (FORMAT CSV)', output). I don't get any error but my table is also not filled up....
Loading…
comment
How to do async SQL bulk insertion with pandas dataFrame.to_sql() and SQLAlchemy?
@Zegarek yeah you are probably right. I went with the answer from your first comment and it works now. Thank you :)
comment
How to do async SQL bulk insertion with pandas dataFrame.to_sql() and SQLAlchemy?
@Zegarek this guide doesn't use pandas at all. Would you recommend to skip the "middle man" and directly use SQL commands instead?
Loading…
awarded
revised
Loading…
Loading…
Loading…
Loading…
comment
What is the most elegant and efficient way to encoding strings to numeric values in pandas?
@mozway the first option. There is no A or B. It is always AA, BB or AB.
comment
What is the most elegant and efficient way to encoding strings to numeric values in pandas?
@JasonChia yes. I work with rather huge data. Apply would probably do the job just fine. But I'd like to use a faster way if possible.
Loading…
revised
Loading…
Loading…
awarded
1
2 3 4 5 6