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.6.tar.gz (37.7 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.6-py3-none-any.whl (37.9 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pfas_birthweight-0.1.6.tar.gz
  • Upload date:
  • Size: 37.7 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.6.tar.gz
Algorithm Hash digest
SHA256 4d940a4d36be3706aebb5754fcf744d20f0dd299112ca959d4ce30c6b1895e86
MD5 d806365ed4f7e917759f90be47255d3e
BLAKE2b-256 c4a3456432b98c23ac61842ad5f38758bda51a8c9e1b113db8eae4756ebf9655

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pfas_birthweight-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 37.9 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 5a74eeb11a54b467949badf1379446e55e4e4a85ee70e6f5e9e91d44375b8ad2
MD5 897bb1f43243c44e3635486e49d97ab4
BLAKE2b-256 663e91e37b94fa2987e90eed2ec0f7a5b228d03b34b5af596972006539f288b2

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