When I initialize my dataframe using
df = DataFrame([(a=1,b=2), (a=3,b=4), (a=1,)])
I would expect to get
Instead I get an error
ERROR: type NamedTuple has no field b
Stacktrace:
[1] getproperty
@ ./Base.jl:37 [inlined]
[2] getcolumn
@ ~/.julia/packages/Tables/AcRIE/src/Tables.jl:102 [inlined]
Is there a simple way to get the former behavior? Should it be what DataFrames does by default instead of throwing an error?