# MethodError: no method matching length(::CSV.Row{false})

**URL:** <https://discourse.julialang.org/t/methoderror-no-method-matching-length-csv-row-false/32386>\
**Category:** General Usage\
**Created:** [December 17, 2019, 2:57pm UTC](https://discourse.julialang.org/t/methoderror-no-method-matching-length-csv-row-false/32386 "2019-12-17T14:57:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bsnyh](https://avatars.discourse-cdn.com/v4/letter/b/ce7236/32.png) [@bsnyh](https://discourse.julialang.org/u/bsnyh)\
**Post date:** [December 17, 2019, 2:57pm UTC](https://discourse.julialang.org/t/methoderror-no-method-matching-length-csv-row-false/32386/1 "2019-12-17T14:57:56Z")

</div>

```julia
using CSV
using DataFrames

fln = "myfln.csv" 
for (i,row) in enumerate(CSV.File(fln))
    if df.Resource[i] == 1
        push!(df1,row)
    elseif df.Resource[i] == 2
        push!(df2,row)
    elseif df.Resource[i] == 3
        push!(df3, row)
    elseif df.Resource[i] == 4
        push!(df4,row)
    end
end

```

The above is a simple code to split and recombine a given .csv file based on a specific column. Not sure why I got MethodError: no method matching length(::CSV.Row{false}). Any comments are greatly appreciated.
