Home > Back-end >  Put a pandas dataframe into sql
Put a pandas dataframe into sql

Time:11-24

I would like to upload an already into python imported pandas dataframe into PSQL. Unfortunately, I cannot find the code how to do this.

Does anyone have an idea how this can be done most efficiently?

Thanks again,

Cheers

CodePudding user response:

Here's the code and the libraries you'll need:

https://medium.com/analytics-vidhya/part-4-pandas-dataframe-to-postgresql-using-python-8ffdb0323c09

  • Related