Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement rand #87

Open
jtrakk opened this issue Dec 25, 2021 · 1 comment
Open

Implement rand #87

jtrakk opened this issue Dec 25, 2021 · 1 comment

Comments

@jtrakk
Copy link

jtrakk commented Dec 25, 2021

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 jtrakk changed the title Implement rand(t) Implement rand Dec 25, 2021
@andyferris
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants