A small package that calculates Average and percentages
Project description
To use this Average and percentage library,input the following parameters.
#for "Average" of set of numbers, "sum_of_numbers": means the total sum of all numbers that you are about getting the average "count_of_numbers":means the count of the total numbers you are summing
#for "percentage of set nof numbers"
"total_of_particular_entity": this is the particular entity you are about getting the percentage out of the whole entities
total_of_whole_entity": this is the value of the whole entities.
you are to use the instance this way:
if name == 'main': ap = AnalyticProperties() sum_of_numbers=678 count_of_numbers=67 total_of_particular_entity=499 total_of_whole_entity=50000
print('\n the average of the count of {} entries to the total sum of all entries {} is : {}'.format(count_of_numbers,sum_of_numbers, ap.average(count_of_numbers,sum_of_numbers)))
print('The percentage of {} to {} is : {}%'.format(total_of_particular_entity,total_of_whole_entity, ap.percentage(total_of_particular_entity,total_of_whole_entity)))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file example_package_analytic_lib-0.0.1.tar.gz.
File metadata
- Download URL: example_package_analytic_lib-0.0.1.tar.gz
- Upload date:
- Size: 1.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.7.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c040945a813baabda9479d441014352f293936f4346dc5852cf4e4253ccd16c1
|
|
| MD5 |
ffbecf1b7706fd4841521e0cc3b6ef91
|
|
| BLAKE2b-256 |
8c3e59d8c867097ef5931a7f9fa9f17902ab9a291b21727a3c50918c0a8a2de1
|
File details
Details for the file example_package_analytic_lib-0.0.1-py3-none-any.whl.
File metadata
- Download URL: example_package_analytic_lib-0.0.1-py3-none-any.whl
- Upload date:
- Size: 2.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.7.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c275c565d131b64d0f271dbdbb44df6cb9a6a732a4158b303cb17e6fd35f8004
|
|
| MD5 |
c33e633b96e41f332f23e6acdfee3352
|
|
| BLAKE2b-256 |
6c70f9d55f4ef458129baef07d4b383787615e0a4805a6f418cb36fabe956ec2
|