Skip to main content

A Python API for accessing NHANES data

Project description

Pandas-Nhanes

A Python package for accessing a cleaned subset of NHANES National Health and Nutrition Examination Survey data for quick prototyping—no API key required.

Caching is implemented to avoid re-downloading datasets.

Installation

Install from PyPI:

pip install pandas_nhanes

Or from source:

git clone https://github.com/jeromevde/pandas_nhanes.git
cd pandas_nhanes
pip install -e .

Usage

from pandas_nhanes import get_variables, get_dataset, explore
# Get the full NHANES variable table
variables = get_variables()
# Explore the variables table in an interactive HTML table in browser
explore()
# Download a dataset as a pandas DataFrame
TST_L = get_dataset("TST_L")

Results

Cycle 2021-2023 Estradiol

estradiol

Cycle 2021-2023 Testosterone

testosterone

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

pandas_nhanes-0.1.8.tar.gz (589.4 kB view details)

Uploaded Source

Built Distribution

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

pandas_nhanes-0.1.8-py3-none-any.whl (601.9 kB view details)

Uploaded Python 3

File details

Details for the file pandas_nhanes-0.1.8.tar.gz.

File metadata

  • Download URL: pandas_nhanes-0.1.8.tar.gz
  • Upload date:
  • Size: 589.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.12

File hashes

Hashes for pandas_nhanes-0.1.8.tar.gz
Algorithm Hash digest
SHA256 187d5d0830e4167c3ad1d6a61366a8a6c7e39ab48f1ecebad22d555bdae2344b
MD5 9359af9fadce814816d5e92d8da2c7b6
BLAKE2b-256 3ba2054e3396ddd03247513fd54df1d2f10106edaf0bb3bdf1bed35f5fc98580

See more details on using hashes here.

File details

Details for the file pandas_nhanes-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: pandas_nhanes-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 601.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.12

File hashes

Hashes for pandas_nhanes-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 230dd203e00d185f9bf1ba17241f1d00c788fcbfb9444d4a4361c1706e6fccf8
MD5 6b5d8154fcc618859a5b9c36ad19a10c
BLAKE2b-256 1a836af5b395cff6d79465f5dd7c260262f6245b0c28304916bf65371c9f567c

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