Header = false not working

Hello everyone, I have been trying to import my data from a CSV into julia; however, I have been unable to import it without a header. Apparantly you can use header = 0 or header = false; however, neither of these work and always produce an error for me. importing the data works fine without header = false

does not work:

dfmasslist = DataFrame(masslist; header = false)

does work:

dfmasslist = DataFrame(masslist)

header is a keyword argument to CSV, not DataFrame. You need to do CSV.read(file, DataFrame; header = false)

1 Like

I see, thanks for the quick response. it worked!