Skip to main content

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


Download files

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

Source Distribution

example_package_analytic_lib-0.0.1.tar.gz (1.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

example_package_analytic_lib-0.0.1-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file example_package_analytic_lib-0.0.1.tar.gz.

File metadata

File hashes

Hashes for example_package_analytic_lib-0.0.1.tar.gz
Algorithm Hash digest
SHA256 c040945a813baabda9479d441014352f293936f4346dc5852cf4e4253ccd16c1
MD5 ffbecf1b7706fd4841521e0cc3b6ef91
BLAKE2b-256 8c3e59d8c867097ef5931a7f9fa9f17902ab9a291b21727a3c50918c0a8a2de1

See more details on using hashes here.

File details

Details for the file example_package_analytic_lib-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for example_package_analytic_lib-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c275c565d131b64d0f271dbdbb44df6cb9a6a732a4158b303cb17e6fd35f8004
MD5 c33e633b96e41f332f23e6acdfee3352
BLAKE2b-256 6c70f9d55f4ef458129baef07d4b383787615e0a4805a6f418cb36fabe956ec2

See more details on using hashes here.

Supported by

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