# Header = false not working

**URL:** <https://discourse.julialang.org/t/header-false-not-working/84174>\
**Category:** New to Julia\
**Tags:** csv\
**Created:** [July 13, 2022, 1:38pm UTC](https://discourse.julialang.org/t/header-false-not-working/84174 "2022-07-13T13:38:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chiem](https://avatars.discourse-cdn.com/v4/letter/c/e9a140/32.png) [@Chiem](https://discourse.julialang.org/u/Chiem)\
**Post date:** [July 13, 2022, 1:38pm UTC](https://discourse.julialang.org/t/header-false-not-working/84174/1 "2022-07-13T13:38:59Z")

</div>

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:

```julia
dfmasslist = DataFrame(masslist; header = false)

```

does work:

```julia
dfmasslist = DataFrame(masslist)

```

---

<div class="post-metadata">

**Author:** ![pdeffebach](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pdeffebach/32/10320_2.png) [@pdeffebach](https://discourse.julialang.org/u/pdeffebach)\
**Post date:** [July 13, 2022, 1:41pm UTC](https://discourse.julialang.org/t/header-false-not-working/84174/2 "2022-07-13T13:41:52Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Chiem](https://avatars.discourse-cdn.com/v4/letter/c/e9a140/32.png) [@Chiem](https://discourse.julialang.org/u/Chiem)\
**Post date:** [July 13, 2022, 1:43pm UTC](https://discourse.julialang.org/t/header-false-not-working/84174/3 "2022-07-13T13:43:58Z")

</div>

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