Skip to main content

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.

Metadata

Release files for code-20220213-pinakpanigogoi-pinak47 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for code-20220213-pinakpanigogoi-pinak47 0.0.2
File Size Uploaded Provenance Actions
code-20220213-pinakpanigogoi-pinak47-0.0.2.tar.gz 2.9 kB Without provenance Details for code-20220213-pinakpanigogoi-pinak47-0.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for code-20220213-pinakpanigogoi-pinak47 0.0.2
File Interpreter ABI Platform Actions
code_20220213_pinakpanigogoi_pinak47-0.0.2-py3-none-any.whl Python 3 none any Details for code_20220213_pinakpanigogoi_pinak47-0.0.2-py3-none-any.whl

Total release size: 6.0 kB

Release files / code-20220213-pinakpanigogoi-pinak47-0.0.2.tar.gz

Download URL code-20220213-pinakpanigogoi-pinak47-0.0.2.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
17491dc234f87338b40e9ab7c19fea3f7939aa6b7ce2fb24f1770de749ad33fd
BLAKE2b-256 checksum
How to use checksums
be90ccb50b13ff7eed929088183f4c5b056e597b40f9645e0fc487112840d88d
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / code_20220213_pinakpanigogoi_pinak47-0.0.2-py3-none-any.whl

Download URL code_20220213_pinakpanigogoi_pinak47-0.0.2-py3-none-any.whl
Size 3.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e82d1ea03c5b3e64ae769eb7df326595cd9234a3e0ea0d754b8071776ec524b4
BLAKE2b-256 checksum
How to use checksums
0e03ed71d8cea511114744dafc96c5f5a3f99370d54be44bc41549dbf55614ad
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for code-20220213-pinakpanigogoi-pinak47 0.0.2

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page