Package to find the mean, median, and mode.
Project description
mememo
A lightweight package to find the mean, median, and mode. (That's why it's called MEanMEdianMOde)
Benefits
- Most efficient and more lightweight than the
numpyorstatisticsmodule. - No need other 3rd-party modules to install.
- Only 3 functions.
Installation
To import, run
import mememo
mean()
You can use the mean() function to find the mean of 2+ numbers.
a = mememo.mean([1, 2])
print(a) # Output: 1.5
Same way applies to the median() and mode() functions.
a = mememo.median([1, 2])
print(a) # Output: 1.5
a = mememo.mode([1, 2])
print(a) # Output: 2
Cruical note: The function must only take in one argument which is the list of numbers.
For example,
mememo.mean(10, 15, 87)
will raise this error
TypeError: mean() takes 1 positional argument but 3 were given
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
mememo-1.0.0.post0.tar.gz
(2.2 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 mememo-1.0.0.post0.tar.gz.
File metadata
- Download URL: mememo-1.0.0.post0.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
19ee8b24fa624848d4d7758921a81ebc27004d280a19b95b5925322748fd7885
|
|
| MD5 |
1f8dbfa25ddf56fb62375f812da89d76
|
|
| BLAKE2b-256 |
066c7f70a844a7125abdf1f5fc37dc66f0e5e92366da85b49643d81bef6487f4
|
File details
Details for the file mememo-1.0.0.post0-py3-none-any.whl.
File metadata
- Download URL: mememo-1.0.0.post0-py3-none-any.whl
- Upload date:
- Size: 2.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f6dff5a4b1f543812d22cd2a1e69040c28a18501bbb00c12e76ab12a751f546c
|
|
| MD5 |
c4ab61b45018830addd0d439fbf24e55
|
|
| BLAKE2b-256 |
1138899c90d8c5636ed7951646c8adf62d46518e10a0ed5f5865f9685b6bd8a8
|