Skip to content

Commit 43d1e2e

Browse files
authored
Use low_memory=False (#190)
1 parent 65815ac commit 43d1e2e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

onnx_diagnostic/helpers/_log_helper.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -260,17 +260,17 @@ def open_dataframe(
260260
if isinstance(data, pandas.DataFrame):
261261
return data
262262
if isinstance(data, str):
263-
df = pandas.read_csv(data)
263+
df = pandas.read_csv(data, low_memory=False)
264264
df["RAWFILENAME"] = data
265265
return df
266266
if isinstance(data, tuple):
267267
if not data[-1]:
268-
df = pandas.read_csv(data[2])
268+
df = pandas.read_csv(data[2], low_memory=False)
269269
df["RAWFILENAME"] = data[2]
270270
return df
271271
zf = zipfile.ZipFile(data[-1])
272272
with zf.open(data[2]) as f:
273-
df = pandas.read_csv(f)
273+
df = pandas.read_csv(f, low_memory=False)
274274
df["RAWFILENAME"] = f"{data[-1]}/{data[2]}"
275275
zf.close()
276276
return df

0 commit comments

Comments
 (0)