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.8.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.8-py3-none-any.whl
(601.9 kB
view details)
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
187d5d0830e4167c3ad1d6a61366a8a6c7e39ab48f1ecebad22d555bdae2344b
|
|
| MD5 |
9359af9fadce814816d5e92d8da2c7b6
|
|
| BLAKE2b-256 |
3ba2054e3396ddd03247513fd54df1d2f10106edaf0bb3bdf1bed35f5fc98580
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
230dd203e00d185f9bf1ba17241f1d00c788fcbfb9444d4a4361c1706e6fccf8
|
|
| MD5 |
6b5d8154fcc618859a5b9c36ad19a10c
|
|
| BLAKE2b-256 |
1a836af5b395cff6d79465f5dd7c260262f6245b0c28304916bf65371c9f567c
|