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
Cycle 2021-2023 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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
pandas_nhanes-0.1.7-py3-none-any.whl
(601.9 kB
view details)
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
936e061c072d8c68240c0a9a6fc678ee2cb6e1f89d33c231cb90a8f9c42a0194
|
|
| MD5 |
81ca96a7edb64507751febf8c5fed58a
|
|
| BLAKE2b-256 |
3260f7e40491056ae80e98e1f4d3aa874e8ff4817ca00333cb7a0b20b6e71d7b
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ab26a3dc5dbebcefbb750815866f3422c1f4e76ada57432dac2e2da0f8fb2c1
|
|
| MD5 |
b90e85c465a9af60fd6d441848c4fcc3
|
|
| BLAKE2b-256 |
ca9f12747176ebbc762444c41dff914862d29c384624528ec8e16460aa299b3b
|