Problem initializing dataframe column types

This isn’t about DataFrames, but rather auto-promotion. It looks like Julia promotes the Int[] to Float64[] when you make that array. Try adding an Any

julia> [Int[],Float64[]]
2-element Vector{Vector{Float64}}:
 []
 []

julia> Any[Int[],Float64[]]
2-element Vector{Any}:
 Int64[]
 Float64[]
5 Likes