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.3.tar.gz (28.0 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.3-py3-none-any.whl (28.4 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pfas_birthweight-0.1.3.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

Hashes for pfas_birthweight-0.1.3.tar.gz
Algorithm Hash digest
SHA256 85b69824d4002b5ee9860ae59ab4269a0f84fc53ada36484aab5a7611325578d
MD5 8769ffb00a60792cc44ca46750900ddb
BLAKE2b-256 86a0e0db2ff109b07c743e6607d89f08a98a7cb92d6bb1b24fce907ee9a9700b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pfas_birthweight-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 28.4 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2456237c7487fe972d5fdde4a853dbdb501012f14b4e2c3c8aa68c7c23029b58
MD5 35c89900fe3d15562db362912b11598e
BLAKE2b-256 d142af995745a3b32263a35ed7e031f7083fb9c7b0c6125152d33ab7b08d13f1

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