From 31f1a6babdd76bf0225bb00d5c9acb3097c293a2 Mon Sep 17 00:00:00 2001 From: Jose Daniel Lara Date: Fri, 11 Oct 2024 12:52:39 -0600 Subject: [PATCH] change implementation of read dataframe --- src/utils/file_utils.jl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/utils/file_utils.jl b/src/utils/file_utils.jl index ce219a488..926c13938 100644 --- a/src/utils/file_utils.jl +++ b/src/utils/file_utils.jl @@ -11,9 +11,7 @@ end Return a DataFrame from a CSV file. """ function read_dataframe(filename::AbstractString) - open(filename, "r") do io - DataFrames.DataFrame(CSV.File(io)) - end + return CSV.read(filename, DataFrames.DataFrame) end """