Use cut-off points from medical guidelines to classify clinical variables.
Project description
Clinbin
Quickstart | Reference docs | |
Discretize clinical variables according to clinical guidelines in Python.
For example, classify blood pressures according to the European Society of Cardiology guidelines or classify body-mass index according to the World Health Organization.
Installation
pip3 install git+https://gitlab.com/hylkedonker/clinbin.git
Quickstart
Here is an example for blood pressure. See the clinbin docs for more.
In [1]: from clinbin import classify_blood_pressure
...: import pandas as pd
...:
...: systolic = pd.Series([80, 120, 50], index=['alice', 'bob', 'charlie'])
...: diastolic = pd.Series([60, 60, 100], index=['alice', 'bob', 'charlie'])
...: classify_blood_pressure(systolic, diastolic)
Out[1]:
alice normal
bob elevated
charlie hypertension
dtype: category
Categories (3, object): ['normal' < 'elevated' < 'hypertension']
Support
Open a New issue in the issue tracker.
Contributing
We welcome updates and new contributions. New contributions must preferably be de facto standards in the field, e.g., coming from professional societies or authoritative organizations in the field. Code must be black formatted and new contributions are to be accompanied by a unit test.
Authors and acknowledgment
H. C. Donker
License
This project is licensed under the MIT License - see the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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
File details
Details for the file clinbin-0.2.1.tar.gz.
File metadata
- Download URL: clinbin-0.2.1.tar.gz
- Upload date:
- Size: 15.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.14.2 Darwin/25.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
161f8141ae0f0b07beefdf87a94d763ee27786e235c218f0603efe4121ba8ad7
|
|
| MD5 |
d92f9c7360f16c337a9c5a251384655f
|
|
| BLAKE2b-256 |
a8a45788b080c6f425892fc7c60cbfc43377e2567e1863c1fe41e2dcdeb17e67
|
File details
Details for the file clinbin-0.2.1-py3-none-any.whl.
File metadata
- Download URL: clinbin-0.2.1-py3-none-any.whl
- Upload date:
- Size: 14.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.2.1 CPython/3.14.2 Darwin/25.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
be6f2d7bc277af851cfd1bccf837573dbfdf273292524335966914b5e733f33d
|
|
| MD5 |
d578d60f8e53126f1dde39839458f515
|
|
| BLAKE2b-256 |
5c5efc326fcc9a0513e4058e89b19d22ca1374f8f89eb2857cbd9839aa524358
|