turkalpmd's picture
Upload 48 files
526b228
Raw History Blame Contribute Delete
933 Bytes
import pandas as pd
from pygrowup import Calculator
#from pygrowup import helpers
def calc(weight,height,age,gender):
if age <= 24:
calculator = Calculator(adjust_height_data=False,
adjust_weight_scores=False,
include_cdc=False,
logger_name='pygrowup',
log_level='INFO')
wfa = calculator.wfa(weight,age,gender)
lhfa = calculator.lhfa(height,age,gender)
if age > 24:
calculator = Calculator(adjust_height_data=False,
adjust_weight_scores=False,
include_cdc=True,
logger_name='pygrowup',
log_level='INFO')
wfa = calculator.wfa(weight,age,gender)
lhfa = calculator.lhfa(height,age,gender)
return wfa,lhfa