TypedTables.jl icon indicating copy to clipboard operation
TypedTables.jl copied to clipboard

Allow creating empty Table

Open adkabo opened this issue 3 years ago • 2 comments

julia> Table()
ERROR: UndefVarError: n not defined
Stacktrace:
 [1] _ndims(#unused#::Type{Tuple{}})
   @ TypedTables ~/.julia/packages/TypedTables/zfbS2/src/TypedTables.jl:26

adkabo avatar Mar 22 '22 21:03 adkabo

This would be good - but zero-column tables aren’t supported yet. (We need to store a mutable copy of the indices somewhere for that).

andyferris avatar Mar 22 '22 22:03 andyferris

A better error message would help in the meantime, though.

BeastyBlacksmith avatar Dec 13 '23 14:12 BeastyBlacksmith