Skip to content

Commit 31565fb

Browse files
committed
remove index from sqlite db
1 parent e58ecab commit 31565fb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mimic-iv/buildmimic/sqlite/import.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
tablename = tablename[:-4]
2626
if os.path.getsize(f) < THRESHOLD_SIZE:
2727
df = pd.read_csv(f)
28-
df.to_sql(tablename, connection)
28+
df.to_sql(tablename, connection, index=False)
2929
else:
3030
# If the file is too large, let's do the work in chunks
3131
for chunk in pd.read_csv(f, chunksize=CHUNKSIZE, low_memory=False):

0 commit comments

Comments
 (0)