Skip to main content

A small example package

Project description

BMI calculation

The following are the objective,

  1. Calculate the BMI (Body Mass Index) using Formula 1, BMI Category and Health risk from Input data (person_detail.json) of the person and add them as 3 new columns.

         Formula 1 - BMI
         BMI(kg/m2) = mass(kg) / height(m)2
    
  2. Count the total number of overweight people using ranges in the column BMI Category.

     BMI Category------------BMI Range (kg/m2)------------Health risk
    
     Underweight------------  18.4 and below ------------Malnutrition risk
    
     Normal weight------------ 18.5 - 24.9------------------Low risk
    
     Overweight---------------- 25 - 29.9 ----------------Enhanced risk
    
     Moderately obese---------- 30 - 34.9 ---------------- Medium risk
    
     Severely obese ----------- 35 - 39.9  ---------------- High risk
    
     Very severely obese ---- 40 and above ---------------Very high risk
    

There are few major functions used in the whole program,

  1. 'fitness_calc.py' (in 'src' directory) has the functions to calculate BMI, Categorization and the count of Overweight persons.
  2. 'utility.py' is created to make functions generic. It has the file handling functions.
  3. 'test.py' has the function to unit test the code.
  4. 'main.py' is used to get the desired output from the input data.
  5. 'person_detail.json' has the input data containing persons' Gender, Height and Weight.
  6. 'Final_BMI_Results.csv' will give the desired out in .csv format.
  7. 'setup.py' has the required package details.

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

VAMS-pinak47-0.0.8.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

VAMS_pinak47-0.0.8-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file VAMS-pinak47-0.0.8.tar.gz.

File metadata

  • Download URL: VAMS-pinak47-0.0.8.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for VAMS-pinak47-0.0.8.tar.gz
Algorithm Hash digest
SHA256 b1a66fa5530a91909e3b88163160dac9902e41a213c27ef8969575f365c92b44
MD5 94bf6bd14c7c70e6d52655755a781526
BLAKE2b-256 dc9f26b8ee205b3e7f7b39ec653671c4daa0c1990310e35bdb6acae413790242

See more details on using hashes here.

File details

Details for the file VAMS_pinak47-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: VAMS_pinak47-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 2.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for VAMS_pinak47-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 07ab673908d977232a312ef8fe8abce4cbf058803ff972553691f0adf7c0134d
MD5 0f59381bc5961959c9193176e422dd7e
BLAKE2b-256 7813ef1b38aed70ec77e3beb352844219be750fb84168903f3ae0e7ed1f29b16

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