Skip to content
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

Can't read csv in Julia #881

Closed
lozben opened this issue Aug 30, 2021 · 1 comment
Closed

Can't read csv in Julia #881

lozben opened this issue Aug 30, 2021 · 1 comment

Comments

@lozben
Copy link

lozben commented Aug 30, 2021

Hi! I use Julia 1.6.2 and failing to read csv file to Data frame. First I tried CSV.File() and had error UndefVarError: File not defined. Then I tried:
using CSVFile, DataFrames
df = Dataframe(load("file.csv"))
And had: UndefVarError: load not defined

What is better to use?

@quinnj
Copy link
Member

quinnj commented Aug 30, 2021

To load the CSV.jl package, you need to do using CSV, DataFrames first. Once the package loads, you can call df = CSV.read(filename, DataFrame) to read a csv file into a DataFrame.

@quinnj quinnj closed this as completed Aug 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants