Use a list as cursor.execute parameter with dotenv – Postgresql
I am using the dotenv framework to connect my python script to a postgres database. I have a list of ids and want to delete all the rows containing thoses ids ids_to_delete = df["food_id"].tolist() conn = create_conn() with conn.cursor() as…