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")
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.6.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.6-py3-none-any.whl
(601.8 kB
view details)
File details
Details for the file pandas_nhanes-0.1.6.tar.gz.
File metadata
- Download URL: pandas_nhanes-0.1.6.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 |
7407e8e8c9022c40c8172864546439020184befba43b40d934ddd01e6aecc1dc
|
|
| MD5 |
66dae39d84c8fff53607117c6fa43453
|
|
| BLAKE2b-256 |
78150f55da08ef656b2238112f3e90acd586c60b4c1e9527522425e7fe8b9cb8
|
File details
Details for the file pandas_nhanes-0.1.6-py3-none-any.whl.
File metadata
- Download URL: pandas_nhanes-0.1.6-py3-none-any.whl
- Upload date:
- Size: 601.8 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 |
85d9fd33a7e12ab26c8824e96bc727593341253d886dd98a3d926c1c9f1ac383
|
|
| MD5 |
eeae20e6774967f971331b30e99566ae
|
|
| BLAKE2b-256 |
5ef34c691e3c52051fdd0465c41d23bf4f9ef198e15b87f3d92f0528b25640f0
|