Build a county-year panel dataset linking PFAS drinking water contamination to birth weight outcomes.
Project description
pfas-birthweight
A Python package for building a county-year panel dataset linking PFAS contamination in drinking water to birth weight outcomes.
All data is bundled with the package — no external downloads needed.
Installation
pip install pfas-birthweight
Usage
from pfas_birthweight import build_pfas_birthweight_panel
panel = build_pfas_birthweight_panel()
This returns a pandas DataFrame with the following columns:
| Column | Description |
|---|---|
FIPS |
5-digit county FIPS code |
STATE |
2-letter state abbreviation |
COUNTY_SERVED |
County name |
year |
Year (2016–2024) |
births |
Number of births |
avg_birth_weight |
Average birth weight (grams) |
PFAS_county |
Population-weighted mean PFAS concentration (ng/L) |
Individual Functions
from pfas_birthweight import (
load_pfas,
collapse_pfas_to_pws,
load_geo,
build_county_pfas,
load_crosswalk,
attach_fips_to_pfas,
load_birth_weights,
build_panel,
)
Data Sources
- EPA UCMR PFAS monitoring data
- EPA SDWA Geographic Areas
- Census national county FIPS crosswalk
- CDC WONDER birth weight data (2016–2024)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pfas_birthweight-0.1.2.tar.gz.
File metadata
- Download URL: pfas_birthweight-0.1.2.tar.gz
- Upload date:
- Size: 28.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.24 {"installer":{"name":"uv","version":"0.9.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b49da0f0467ae0c08de02a637934a5cab600b0641cb7bef594ca56d4fbd5a21
|
|
| MD5 |
bee3fd119ee6cf2e8d9c169cefc54597
|
|
| BLAKE2b-256 |
da3dde4b24432f0bca57d0d3ab9320ff64ac3a4ff03a8ef93f9fe475b0f80cb0
|
File details
Details for the file pfas_birthweight-0.1.2-py3-none-any.whl.
File metadata
- Download URL: pfas_birthweight-0.1.2-py3-none-any.whl
- Upload date:
- Size: 28.3 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.24 {"installer":{"name":"uv","version":"0.9.24","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2c73c594b2c799ff588043dd33c1246acb04e1762a3f2b3a2a0d8963477b71da
|
|
| MD5 |
1dcba988055389f1c91c4f45c9b10f4b
|
|
| BLAKE2b-256 |
301ce14fc30760054d61a82c2fc3dc31b19bdf8782c736916a139aa5f77f9e77
|