Simple CLI Stats
Project description
pip install p2s
General Stats
seq 0 100 | p2s
Count
seq 0 100 | p2s.count
Mean
seq 0 100 | p2s.mean
Standard Deviation
seq 0 100 | p2s.std
Quantile (in Percent)
seq 0 100 | p2s.q 25
Map (lambda expression)
Each line is in x
seq 0 100 | p2s.map "int(x) + 1"
Reduce
Accumulator a and current c. Usage p2s.reduce <lambda> <initial_accumulator>
seq 0 100 | p2s.reduce "float(a) + float(c)" "0"
Histogram
seq 0 100 | p2s.hist --xlabel "Position" --output "hist.pdf"
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
p2s-0.1.10.tar.gz
(3.4 kB
view details)
File details
Details for the file p2s-0.1.10.tar.gz.
File metadata
- Download URL: p2s-0.1.10.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
da3b4eb930c12db9bd9c211fbb007b0cf8e26d158846c8a4cb7d8fc26b5df91e
|
|
| MD5 |
f6f9d5fd3efe79e7b0cc0c53e169633c
|
|
| BLAKE2b-256 |
66d23de9468226819259221f733db8c2a3675615d936e7245d16e7b78c8da0ee
|