Skip to content

Commit 5863e9e

Browse files
authored
Merge pull request #1160 from NREL-Sienna/jd/fix_csv_file_permission
change implementation of read dataframe
2 parents a0626bb + 31f1a6b commit 5863e9e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/utils/file_utils.jl

+1-3
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ end
1111
Return a DataFrame from a CSV file.
1212
"""
1313
function read_dataframe(filename::AbstractString)
14-
open(filename, "r") do io
15-
DataFrames.DataFrame(CSV.File(io))
16-
end
14+
return CSV.read(filename, DataFrames.DataFrame)
1715
end
1816

1917
"""

0 commit comments

Comments
 (0)