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.5.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.5-py3-none-any.whl (37.8 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pfas_birthweight-0.1.5.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.5.tar.gz
Algorithm Hash digest
SHA256 bab6fbc2e725727367bd27033707a51ba7b5c55a03594c76b87f26e971e621cb
MD5 60b2e296a0878a82e8996a8c5a60bc65
BLAKE2b-256 fc0b450a47d5046369e1c8b97a04b3bee0d72df935b2cd317ba1aba55a5ae183

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pfas_birthweight-0.1.5-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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 795492a2d76858349828cac0ea0aced797c1868272d16907e5ee43a0e33dd1a3
MD5 a180feca075251f58a2aa524769e6311
BLAKE2b-256 f9e274b75a84c9d18975cc048e0511e811edb63947aeddb32e62f9a1f141d692

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