2-dimensional DataFrame column

MATLAB-tables and pandas-dataframe enable more than one element per cell (column-row pair). Is the same possible in Julia DataFrames? I tried for example:

julia> df = DataFrame(A = ones(10), B = ones(10,2))

which prompted: ERROR: DimensionMismatch(“column length 10 for column(s) A, and is incompatible with column length 20 for column(s) B”)

df = DataFrame(A = [ones(10)], B = [ones(10,2)])

See also: https://discourse.julialang.org/t/can-dataframes-jl-handle-multi-dimensional-arrays/

1 Like