Created
July 21, 2025 21:42
-
-
Save fegvilela/330a5b77d00c59c706277127f98e0063 to your computer and use it in GitHub Desktop.
exemplo_conexao_pg.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import psycopg2 | |
import pandas as pd | |
conn = psycopg2.connect( | |
host="db.enqnykbniduvcnlronlk.supabase.co", | |
database="postgres", | |
user="postgres", | |
password="[YOUR-PASSWORD]", | |
port=5432 | |
) | |
df = pd.read_sql("SELECT * FROM sua_tabela", conn) | |
conn.close() |
Author
fegvilela
commented
Jul 21, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment