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.7.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.7-py3-none-any.whl (601.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pandas_nhanes-0.1.7.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.7.tar.gz
Algorithm Hash digest
SHA256 936e061c072d8c68240c0a9a6fc678ee2cb6e1f89d33c231cb90a8f9c42a0194
MD5 81ca96a7edb64507751febf8c5fed58a
BLAKE2b-256 3260f7e40491056ae80e98e1f4d3aa874e8ff4817ca00333cb7a0b20b6e71d7b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pandas_nhanes-0.1.7-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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 7ab26a3dc5dbebcefbb750815866f3422c1f4e76ada57432dac2e2da0f8fb2c1
MD5 b90e85c465a9af60fd6d441848c4fcc3
BLAKE2b-256 ca9f12747176ebbc762444c41dff914862d29c384624528ec8e16460aa299b3b

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