-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when reading CSV files. #832
Comments
You have to make sure you do |
I did make sure I was |
CSV doesn't require DataFrames.jl. When call for row in CSV.File(file)
# so something with row.col1, for example
end Or access entire columns like: col1 = f.col1 |
Ok, I am sending the output into an empty data frame, via
however, I am still reciving the "csv not defined" error. |
You need to load the CSV.jl package first. When you start the using CSV, DataFrames
df = CSV.read("data.csv", DataFrame) Note that for the 2nd argument to |
Ok, I did load the package in the last program, but the issue was I needed to define the df variable using CSV.read. Sorry for taking up your time and thank you so much for your help! |
No problem; happy to help |
Whenever I read a CSV file via
CSV.read("data.csv")
I run into the errorERROR: LoadError: UndefVarError: CSV not defined
I ran the
Pkg test CSV
command and this is the result:The text was updated successfully, but these errors were encountered: