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

Implement rand

Open jtrakk opened this issue 3 years ago • 1 comments

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?

jtrakk avatar Dec 25 '21 22:12 jtrakk

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.

andyferris avatar Jan 28 '22 05:01 andyferris