Relative Content

Tag Archive for python-polarssampleresampling

Python Polars Sample N-1 by Group ID with Replacement

I am working on a bootstrapping project and need to sample M=N-1 observations with replacement where N is the number of unique observations in a specific group (defined by group_id). I need to figure out how to do this in polars. Any solutions?