We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d1f44ce commit 43af516Copy full SHA for 43af516
1 file changed
database_updater.py
@@ -55,7 +55,7 @@
55
cursor.execute(create_table_query)
56
conn.commit()
57
58
-
+ # Insert data into the table
59
for index, row in df.iterrows():
60
insert_query = f"INSERT INTO {table_name} ({', '.join(df.columns)}) VALUES ({', '.join(['?' for _ in row])})"
61
cursor.execute(insert_query, tuple(row))
0 commit comments