TypedTables.jl
TypedTables.jl copied to clipboard
Implement rand
Currently rand returns a vector of namedtuples.
julia> rand(Table([(a=1,b=2), (a=10,b=20)]), 2)
2-element Vector{NamedTuple{(:a, :b), Tuple{Int64, Int64}}}:
(a = 10, b = 20)
(a = 1, b = 2)
What do you think about returning a Table?
Yeah that's a cool idea.
Data generation is a pretty important topic - it would be cool to be able to specify a "distribution" for each column somehow. Not sure how to design that though.