Open
Description
julia> DataFrame([Dict("a" => 1), Dict()])
ERROR: type Dict has no field a
Stacktrace:
[1-10] ⋮ internal
@ Base, Tables, DataFrames, Unknown
[11] DataFrame(x::Vector{Dict})
@ DataFrames ~/.julia/packages/DataFrames/58MUJ/src/other/tables.jl:48
Use `err` to retrieve the full stack trace.
julia> DataFrame([Dict("a" => 1), Dict("a" => 2)])
2×1 DataFrame
Row │ a
│ Int64
─────┼───────
1 │ 1
2 │ 2
I think this error message isn't that clear. Perhaps better:
Dict
at index 2 has no key "a".
Metadata
Assignees
Labels
No labels