Skip to main content

z-scores of anthropometric measurements of children below 5 years based on WHO

Project description

Z score

This libray is Used for measuring Z score of Children (0-5 Years) based on standard provided by WHO 2006

Latest Version https://img.shields.io/pypi/wheel/cgmzscore.svg https://img.shields.io/pypi/pyversions/cgmzscore.svg banner

REQUIREMENTS

  • Python 2.7.x, Python 3.x or later

INSTALLATION

pip install cgmzscore

EXAMPLE USAGE

applying functions on CGM datasets:

from cgmzscore.src.main import z_score_with_class
import ast

df["sex"] = df["sex"].map({"male": "M", "female": "F"})
df["metrics"] = df.apply(lambda row: z_score_with_class(weight=row["weight"], height=row["height"], muac=row["muac"], age_in_days=row["age"], sex=row["sex"]), axis=1)
df["metrics"] = df["metrics"].apply(ast.literal_eval)
for col in df.metrics[0].keys():
    df[col] = df["metrics"].apply(lambda x: x[col])
df = df.drop("metrics", axis=1)

calculate z score for weight vs age

from cgmzscore.src.main import z_score_wfa

score = z_score_wfa(weight="7.853",age_in_days='16',sex='M')

calculate z score for weight vs length/height

from cgmzscore.src.main import z_score_wfl

score = z_score_wfl(weight="7.853",age_in_days='16',sex='M',height='73')

calculate z score for weight vs length/height and both wfl and wfh works same

from cgmzscore.src.main import z_score_wfh

score = z_score_wfh(weight="7.853",age_in_days='16',sex='M',height='73')

calculate z score for length vs age

from cgmzscore.src.main import z_score_lhfa

score = z_score_lhfa(age_in_days='16',sex='M',height='73')

compute all z scores and corresponding diagnoses at once

from cgmzscore.src.main import z_score_with_class

score = z_score_with_class(weight="7.853", muac="13.5", age_in_days='16', sex='M', height='73')

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

cgmzscore-3.3.1-py3-none-any.whl (430.8 kB view details)

Uploaded Python 3

File details

Details for the file cgmzscore-3.3.1-py3-none-any.whl.

File metadata

  • Download URL: cgmzscore-3.3.1-py3-none-any.whl
  • Upload date:
  • Size: 430.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.17

File hashes

Hashes for cgmzscore-3.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c0db8eb224824345cd5f700077624dc9bcf527a589865fdcf44dedf6b2e6b3d3
MD5 382d46bafe39efcb1ee521f9746b66f7
BLAKE2b-256 be591bf5ec495388084dba973131aff05ecd50b7748db8be6c6d39b0b546daa7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page