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

Add weighted bootstrapping #3

Open
wd60622 opened this issue Aug 25, 2023 · 1 comment
Open

Add weighted bootstrapping #3

wd60622 opened this issue Aug 25, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@wd60622
Copy link
Owner

wd60622 commented Aug 25, 2023

Sampling based on weights defined in column

https://allendowney.github.io/ElementsOfDataScience/12_bootstrap.html

@wd60622 wd60622 added the enhancement New feature or request label Aug 25, 2023
@wd60622
Copy link
Owner Author

wd60622 commented Oct 30, 2023

This should already be possible with the sample_kwargs: https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.sample.html

sample_kwargs = {"weights": ...}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant