Skip to main content

text_histogram

PyPI version Number of PyPI downloads

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_histogram import histogram
>>> import random
>>> histogram([random.gauss(50, 20) for _ in xrange(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_histogram

Source: https://github.com/Kobold/text_histogram

Metadata

Release files for text_histogram 0.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for text_histogram 0.0.7
File Size Uploaded Provenance
text_histogram-0.0.7.tar.gz 4.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for text_histogram 0.0.7
File Interpreter ABI Platform
text_histogram-0.0.7-py2-none-any.whl Python 2 none any Details

Total release size: 10.8 kB

Release files / text_histogram-0.0.7.tar.gz

Download URL text_histogram-0.0.7.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
04b727e5e7205704524cf0dd7e61a67748d7929fd554c9c553fbdebafd280019
BLAKE2b-256 checksum
How to use checksums
cc9d478389840949022e70c94e1ac68252a0e752dfa2081a80bae2b3008e43b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / text_histogram-0.0.7-py2-none-any.whl

Download URL text_histogram-0.0.7-py2-none-any.whl
Size 6.4 kB
Tags Python 2
SHA-256 checksum
How to use checksums
a65f274b8ea6ae625970b14a095e7c9f236ceae15d97e407bb64531173970e70
BLAKE2b-256 checksum
How to use checksums
df51f9564b2f51f1ec35f781470a221117df2c01855ebe9223a3bf229e4a4749
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for text_histogram 0.0.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page