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

Repeated sampling for Bootstraping #19702

Open
AdaemmerP opened this issue Nov 8, 2024 · 0 comments
Open

Repeated sampling for Bootstraping #19702

AdaemmerP opened this issue Nov 8, 2024 · 0 comments
Labels
enhancement New feature or an improvement of an existing feature

Comments

@AdaemmerP
Copy link

Description

I’m wondering if Polars for Python can offer an equivalent to the rep_sample_n function from the moderndive package in R. In moderndive, rep_sample_n allows you to take repeated random samples of a specified size from a data frame, which is very useful for bootstrapping and resampling tasks.

For example:

rep_sample_n(data, size = 10, reps = 100, replace = TRUE)

This would generate 100 samples, each containing 10 observations from data, sampled with replacement.

Thanks for the amazing package!

@AdaemmerP AdaemmerP added the enhancement New feature or an improvement of an existing feature label Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or an improvement of an existing feature
Projects
None yet
Development

No branches or pull requests

1 participant