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.
Metadata
Release files for clinbin 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| clinbin-0.2.1.tar.gz | 15.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| clinbin-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 30.1 kB
Release files / clinbin-0.2.1.tar.gz
| Download URL | clinbin-0.2.1.tar.gz |
|---|---|
| Size | 15.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
161f8141ae0f0b07beefdf87a94d763ee27786e235c218f0603efe4121ba8ad7
|
|
BLAKE2b-256 checksum How to use checksums |
a8a45788b080c6f425892fc7c60cbfc43377e2567e1863c1fe41e2dcdeb17e67
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.14.2 Darwin/25.1.0
|
Release files / clinbin-0.2.1-py3-none-any.whl
| Download URL | clinbin-0.2.1-py3-none-any.whl |
|---|---|
| Size | 14.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
be6f2d7bc277af851cfd1bccf837573dbfdf273292524335966914b5e733f33d
|
|
BLAKE2b-256 checksum How to use checksums |
5c5efc326fcc9a0513e4058e89b19d22ca1374f8f89eb2857cbd9839aa524358
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.14.2 Darwin/25.1.0
|
Security for clinbin 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.