{"id":16586712,"url":"https://github.com/williambdean/pandas-bootstrap","last_synced_at":"2025-10-29T08:32:50.513Z","repository":{"id":180201368,"uuid":"664767428","full_name":"wd60622/pandas-bootstrap","owner":"wd60622","description":"Statistical Bootstrap in Pandas","archived":false,"fork":false,"pushed_at":"2025-02-11T05:11:18.000Z","size":4226,"stargazers_count":3,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-11T06:22:54.096Z","etag":null,"topics":["bootstrap","data-science","pandas","python","statistical-analysis","statistics"],"latest_commit_sha":null,"homepage":"https://wd60622.github.io/pandas-bootstrap/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wd60622.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-10T17:46:45.000Z","updated_at":"2025-02-11T05:11:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"4b9dc51b-b856-4eb2-8947-8215e1ff3b91","html_url":"https://github.com/wd60622/pandas-bootstrap","commit_stats":null,"previous_names":["wd60622/pandas-bootstrap"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wd60622%2Fpandas-bootstrap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wd60622%2Fpandas-bootstrap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wd60622%2Fpandas-bootstrap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wd60622%2Fpandas-bootstrap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wd60622","download_url":"https://codeload.github.com/wd60622/pandas-bootstrap/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238795379,"owners_count":19531727,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bootstrap","data-science","pandas","python","statistical-analysis","statistics"],"created_at":"2024-10-11T22:52:20.391Z","updated_at":"2025-10-29T08:32:50.500Z","avatar_url":"https://github.com/wd60622.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pandas Bootstrap\n\n[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)\n[![Tests](https://github.com/williambdean/pandas-bootstrap/actions/workflows/tests.yml/badge.svg)](https://github.com/williambdean/pandas-bootstrap/actions/workflows/tests.yml)\n[![PyPI version](https://badge.fury.io/py/pandas-bootstrap.svg)](https://badge.fury.io/py/pandas-bootstrap)\n[![docs](https://github.com/williambdean/pandas-bootstrap/actions/workflows/docs.yml/badge.svg)](https://williambdean.github.io/pandas-bootstrap/)\n[![codecov](https://codecov.io/gh/williambdean/pandas-bootstrap/graph/badge.svg?token=WEJBSBMTYN)](https://codecov.io/gh/williambdean/pandas-bootstrap)\n\nStatistical Bootstrap with Pandas made easy.\n\n## Installation\n\n```bash\npip install pandas-bootstrap\n```\n\n## Usage\n\nThe module is very easy to use.\n\n1. `import bootstrap`\n2. define statistic function: `def some_func(df: pd.DataFrame | pd.Series):`\n3. get bootstrapped samples: `df.boot.get_samples(bfunc=some_func, B=100)`\n\nBelow is a simple example of bootstrapping the mean of two columns.\n\n```python\nimport pandas as pd\n\nimport bootstrap\n\ndf = pd.DataFrame({\n    'a': [1, 2, 3, 4, 5],\n    'b': [6, 7, 8, 9, 10],\n})\n\ndef mean_of_columns(df):\n    return df.mean(numeric_only=True)\n\nsample_kwargs = dict(random_state=42)\ndf_bootstrap = df.boot.get_samples(bfunc=mean_of_columns, B=5, sample_kwargs=sample_kwargs)\n```\n\nwhich results in:\n\n```text\n          a    b\nsample\n0       3.0  8.0\n1       2.6  7.6\n2       4.0  9.0\n3       3.2  8.2\n4       3.0  8.0\n```\n\n## Documentation\n\nRead more in the [documentation](https://williambdean.github.io/pandas-bootstrap/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwilliambdean%2Fpandas-bootstrap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwilliambdean%2Fpandas-bootstrap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwilliambdean%2Fpandas-bootstrap/lists"}