text_histogram3
Histograms are great for exploring data, but numpy and matplotlib are heavy and overkill for quick analysis. They also can’t be easily used on remote servers over ssh. Don’t even get me started on installing them.
Bit.ly’s data_hacks histogram.py is great but difficult to use from python code directly (it requires an optparse.OptionParser to pass histogram options). This is histogram.py repackaged for convenient script use.
>>> from text_histogram3 import histogram
>>> import random
>>> histogram([random.gauss(50, 20) for _ in range(100)])
# NumSamples = 100; Min = 1.42; Max = 87.36
# Mean = 51.848095; Variance = 332.055832; SD = 18.222399; Median 53.239251
# each ∎ represents a count of 1
1.4221 - 10.0159 [ 3]: ∎∎∎
10.0159 - 18.6098 [ 3]: ∎∎∎
18.6098 - 27.2036 [ 6]: ∎∎∎∎∎∎
27.2036 - 35.7974 [ 4]: ∎∎∎∎
35.7974 - 44.3913 [ 17]: ∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎
44.3913 - 52.9851 [ 16]: ∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎
52.9851 - 61.5789 [ 17]: ∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎
61.5789 - 70.1728 [ 20]: ∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎∎
70.1728 - 78.7666 [ 8]: ∎∎∎∎∎∎∎∎
78.7666 - 87.3604 [ 6]: ∎∎∎∎∎∎
Installation
$ pip install text_histogram3
Metadata
Release files for text-histogram3 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| text_histogram3-1.0.0.tar.gz | 4.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| text_histogram3-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.0 kB
Release files / text_histogram3-1.0.0.tar.gz
| Download URL | text_histogram3-1.0.0.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
94bec1d4f46dae8b889de17eb444c210f2fa68319e7f0221597accb5f6e7ea80
|
|
BLAKE2b-256 checksum How to use checksums |
7efdccc61e562c27e032639eb313697b861b4ee62539c6fa2620f8bbbada61b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3.post20200325 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2
|
Release files / text_histogram3-1.0.0-py3-none-any.whl
| Download URL | text_histogram3-1.0.0-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
28f14bf5b02485bd7dfe6ba56629d923ebca2c695ff8b929cc8a15949aaff688
|
|
BLAKE2b-256 checksum How to use checksums |
d975619def54d066986d4a8919e72fe1a856e58efb9d2fd4016bb0dae9a7e1ec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3.post20200325 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2
|