I need read a .txt file. The structure: red=DataFrames.readtable(“I:/Julia/CHO/cho1.txt”,allowcomments=true,separator=’ ')
worked with DataFrames v0.20.0 but not run with v0.21.3 (UndefVarError: readtable not defined)
How can I solve this problem?
See here:
Base.depwarn("readtable is deprecated, use CSV.read from the CSV package instead",
:readtable)
Although that deprecation message funnily is sort of deprecated itself, as CSV just deprecated CSV.read
as of the latest v0.7.
So in short use DataFrame!(CSV.File(path))
2 Likes