We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4cf9855 commit 95ea246Copy full SHA for 95ea246
1 file changed
mimic-iv/buildmimic/sqlite/import.py
@@ -110,7 +110,7 @@ def main():
110
if args.limit > 0:
111
for f in data_files:
112
if 'patients' in f.name:
113
- pt = pd.read_csv(f)
+ pt = pd.read_csv(f, low_memory=False)
114
break
115
if pt is None:
116
raise FileNotFoundError('Unable to find a patients file in current folder.')
@@ -158,7 +158,7 @@ def main():
158
tablename = tablenames[i]
159
print("Starting processing {}".format(tablename), end='.. ')
160
if os.path.getsize(f) < THRESHOLD_SIZE:
161
- df = pd.read_csv(f, dtype=mimic_dtypes)
+ df = pd.read_csv(f, dtype=mimic_dtypes, low_memory=False)
162
df = process_dataframe(df, subjects=subjects)
163
df.to_sql(tablename, connection, index=False)
164
row_counts[tablename] += len(df)
0 commit comments