{"id":15442629,"url":"https://github.com/coatless-py-pkg/pybabynames","last_synced_at":"2026-03-03T00:40:02.798Z","repository":{"id":257186948,"uuid":"857533724","full_name":"coatless-py-pkg/pybabynames","owner":"coatless-py-pkg","description":"Python port of the R data package {babynames} with support for either Pandas or Polars data being loaded.","archived":false,"fork":false,"pushed_at":"2024-09-15T23:00:44.000Z","size":20876,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-29T05:48:52.926Z","etag":null,"topics":["data-package","data-science","pandas","polars","python","python-data-package","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/coatless-py-pkg.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG","contributing":null,"funding":null,"license":null,"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},"funding":{"github":["coatless"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2024-09-14T22:36:24.000Z","updated_at":"2025-02-01T19:02:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"45d8121a-f26a-4130-9882-883f59e4444a","html_url":"https://github.com/coatless-py-pkg/pybabynames","commit_stats":{"total_commits":41,"total_committers":2,"mean_commits":20.5,"dds":"0.024390243902439046","last_synced_commit":"c19523a183df630a32a0418915153018f8260d91"},"previous_names":["coatless-py-pkg/pybabynames"],"tags_count":1,"template":false,"template_full_name":"coatless-devcontainer/py-pkg-dev","purl":"pkg:github/coatless-py-pkg/pybabynames","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coatless-py-pkg%2Fpybabynames","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coatless-py-pkg%2Fpybabynames/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coatless-py-pkg%2Fpybabynames/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coatless-py-pkg%2Fpybabynames/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coatless-py-pkg","download_url":"https://codeload.github.com/coatless-py-pkg/pybabynames/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coatless-py-pkg%2Fpybabynames/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30027653,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-03T00:31:48.536Z","status":"ssl_error","status_checked_at":"2026-03-03T00:30:56.176Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["data-package","data-science","pandas","polars","python","python-data-package","python3"],"created_at":"2024-10-01T19:28:58.585Z","updated_at":"2026-03-03T00:40:02.747Z","avatar_url":"https://github.com/coatless-py-pkg.png","language":"Python","readme":"# pybabynames\n\n[![PyPI](https://img.shields.io/pypi/v/pybabynames.svg)](https://pypi.org/project/pybabynames/)\n[![Tests](https://github.com/coatless-py-pkg/pybabynames/actions/workflows/test.yml/badge.svg)](https://github.com/coatless-py-pkg/pybabynames/actions/workflows/test.yml)\n[![Changelog](https://img.shields.io/github/v/release/coatless-py-pkg/pybabynames?include_prereleases\u0026label=changelog)](https://github.com/coatless-py-pkg/pybabynames/releases)\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/coatless-py-pkg/pybabynames/blob/main/LICENSE)\n\nPython port of the R data package [`babynames`](https://cran.r-project.org/package=babynames). This package provides US baby names data from the Social Security Administration (SSA). It contains all names used for at least 5 children of either sex in the United States. The package features the ability to switch between the data being imported as a Polars DataFrame (default) or a Pandas DataFrame by setting an environment variable.\n\n\u003e [!NOTE]\n\u003e\n\u003e Please note that the `pybabynames` package is a community-driven initiative and is not affiliated with Posit, Tidyverse, or the main babynames R package.\n\u003e Its evolution and maintenance stem solely from the collective efforts of community members.\n\n## Installation\n\nInstall this library using `pip` into an environment that **already has** either Pandas or Polars installed.\n\n```bash\npip install pybabynames\n```\n\nMissing Pandas or Polars? You can install these packages using:\n\n```bash\npip install polars\npip install pandas\n```\n\n## Usage\n\n```python\nimport pybabynames as bn\n\n# Retrieve DataFrame of baby names\nbabynames = bn.babynames\n\n# Retrieve DataFrame of applicant data for SSN\napplicants = bn.applicants\n\n# Retrieve DataFrame of Birth Data\nbirths = bn.births\n\n# Retrieve DataFrame of life expectancy\nlifetables = bn.lifetables\n```\n\n\u003e [!IMPORTANT]\n\u003e\n\u003e By default, we'll attempt to use the `polars` module. You can switch back to using `pandas` by\n\u003e specifying before `babynames` import statement an environment flag like so:\n\u003e\n\u003e ```python\n\u003e # Specify desired DataFrame framework\n\u003e import os\n\u003e os.environ[\"DATAFRAME_FRAMEWORK\"] = \"pandas\"\n\u003e\n\u003e # Load the package\n\u003e import pybabynames as bn\n\u003e ```\n\n## Development\n\nTo contribute to this library, first checkout the code. Then create a new virtual environment:\n\n```bash\ncd pybabynames\npython -m venv venv\nsource venv/bin/activate\n```\n\nNow install the dependencies and test dependencies:\n\n```bash\npython -m pip install -e '.[test]'\n```\n\nTo run the tests:\n\n```bash\npython -m pytest\n```\n\n## Acknowledgement\n\nThis Python package is a port of the R Data package [`babynames`](https://cran.r-project.org/package=babynames) by [Hadley Wickham](https://hadley.nz/).\n","funding_links":["https://github.com/sponsors/coatless"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoatless-py-pkg%2Fpybabynames","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoatless-py-pkg%2Fpybabynames","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoatless-py-pkg%2Fpybabynames/lists"}