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

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.