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 """