pybabynames
Python port of the R data 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.
Installation
Install this library using pip into an environment that already has either Pandas or Polars installed.
pip install pybabynames
Missing Pandas or Polars? You can install these packages using:
pip install polars
pip install pandas
Usage
import pybabynames as bn
# Retrieve DataFrame of baby names
babynames = bn.babynames
# Retrieve DataFrame of applicant data for SSN
applicants = bn.applicants
# Retrieve DataFrame of Birth Data
births = bn.births
# Retrieve DataFrame of life expectancy
lifetables = bn.lifetables
Development
To contribute to this library, first checkout the code. Then create a new virtual environment:
cd pybabynames
python -m venv venv
source venv/bin/activate
Now install the dependencies and test dependencies:
python -m pip install -e '.[test]'
To run the tests:
python -m pytest
Acknowledgement
This Python package is a port of the R Data package babynames by Hadley Wickham.
Metadata
Release files for pybabynames 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pybabynames-1.0.0.tar.gz | 6.2 MB | Without provenance | Details for pybabynames-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pybabynames-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for pybabynames-1.0.0-py3-none-any.whl |
Total release size: 12.4 MB
Release files / pybabynames-1.0.0.tar.gz
| Download URL | pybabynames-1.0.0.tar.gz |
|---|---|
| Size | 6.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8fb9debff2ed70796ad13fba09d625907f8ac7243bf56e55e11ba2b80592c42b
|
|
BLAKE2b-256 checksum How to use checksums |
8f7d8f902544f04fee834df73f3ecbbfa16829b23306b59345ee60a28f6ed0dc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.6
|
Release files / pybabynames-1.0.0-py3-none-any.whl
| Download URL | pybabynames-1.0.0-py3-none-any.whl |
|---|---|
| Size | 6.2 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
02a754531701a7fbc1a2d94f187942bdb9740066b415c578d954133aaa436788
|
|
BLAKE2b-256 checksum How to use checksums |
4041959569f508d5600a4d25f49c6dca22b55fdd7a09f1c44c83eaacc0521dc3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.6
|
Security for pybabynames 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.