Skip to main content

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

pfas_birthweight-0.1.4.tar.gz (37.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pfas_birthweight-0.1.4-py3-none-any.whl (37.8 MB view details)

Uploaded Python 3

File details

Details for the file pfas_birthweight-0.1.4.tar.gz.

File metadata

  • Download URL: pfas_birthweight-0.1.4.tar.gz
  • Upload date:
  • Size: 37.6 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

Hashes for pfas_birthweight-0.1.4.tar.gz
Algorithm Hash digest
SHA256 a0bef7c4d8cf9d2321cfd0e504d9323efb0c76f3ae1a9ba6b6ccc398c5f2397c
MD5 5985b61ec0e2fc434723b22692b5b00a
BLAKE2b-256 a66ab5a2a1b729ce919b57fc021a76555cbf3b701e858e0f15b55b2aac3dd4b6

See more details on using hashes here.

File details

Details for the file pfas_birthweight-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: pfas_birthweight-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 37.8 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

Hashes for pfas_birthweight-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 5514c2ac22fffb2cf64e5d9bc496bdde62abea46510fc54a72e7dd0fcbb849b7
MD5 fbb638002a74340a03c02c3a0d3cca13
BLAKE2b-256 215966550fd1023652868289b4844b1921c477cfcf549b44e2db6156cb452555

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page