A simple Python toolkit for basic statistics and unit conversions
Project description
hasstatkit
A simple Python toolkit for basic statistics and unit conversions.
Installation
pip install hasstatkit
Modules
1. statistics_tools
mean(numbers)— calculates the averagemedian(numbers)— calculates the middle valuevariance(numbers)— calculates the spread of datastd_dev(numbers)— calculates the standard deviation
2. conversions
celsius_to_fahrenheit(c)— converts Celsius to Fahrenheitfahrenheit_to_celsius(f)— converts Fahrenheit to Celsiuskm_to_miles(km)— converts kilometers to milesmiles_to_km(miles)— converts miles to kilometers
Usage
import hasstatkit
print(hasstatkit.mean([2, 4, 6])) # 4.0
print(hasstatkit.median([1, 2, 3, 4])) # 2.5
print(hasstatkit.celsius_to_fahrenheit(100)) # 212.0
print(hasstatkit.km_to_miles(10)) # 6.21371
License
MIT License
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
hasstatkit-0.1.0.tar.gz
(3.8 kB
view details)
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 hasstatkit-0.1.0.tar.gz.
File metadata
- Download URL: hasstatkit-0.1.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a0ca18e082ede2c4461963c00f270ab815a638a09f63d0d8326841ce170ffa6
|
|
| MD5 |
edeb615b6fcbcfc64ebf9faad7c00bc6
|
|
| BLAKE2b-256 |
f013dccb782a9da8c8ed2bf6569cdcd511312cf97f3de32e506ced8f531520e5
|
File details
Details for the file hasstatkit-0.1.0-py3-none-any.whl.
File metadata
- Download URL: hasstatkit-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6be5962aadf01f6ebba02af5859702042d7b378a209b87001ef633860d683567
|
|
| MD5 |
9a10194e3cfee8b1d0ffc982a24cf27c
|
|
| BLAKE2b-256 |
076da4989f52867a154e9d3821ea1468df50241493b202d53704a7faf33c0d47
|