Skip to content

Commit 6b9bfa5

Browse files
committed
Changes DF if_exists behavior, not overwriting existing table
1 parent 350191e commit 6b9bfa5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/load_csv.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def load_csv_and_generate_embeddings(path):
3232
df.to_sql(
3333
CompanyContent.__tablename__,
3434
session.get_bind(),
35-
if_exists="replace",
35+
if_exists="append",
3636
index=False
3737
)
3838

0 commit comments

Comments
 (0)