pycounts_cxy24
Calculate word counts in a text file
Installation
$ pip install pycounts_cxy24
pycounts can be used to count words in a text file and plot results
as follows:
from pycounts.pycounts import count_words
from pycounts.plotting import plot_words
import matplotlib.pyplot as plt
file_path = "test.txt" # path to your file
counts = count_words(file_path)
fig = plot_words(counts, n=10)
plt.show()
Usage
pycounts can be used to count words in a text file and plot results
as follows:
from pycounts.pycounts import count_words
from pycounts.plotting import plot_words
import matplotlib.pyplot as plt
file_path = "test.txt" # path to your file
counts = count_words(file_path)
fig = plot_words(counts, n=10)
plt.show()
Contributing
Interested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.
License
pycounts was created by Tomas Beuzen. It is licensed under the terms
of the MIT license.
Credits
pycounts was created with
cookiecutter and
the py-pkgs-cookiecutter
template.
Release files for pycounts_cxy24 0.1.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 | |
|---|---|---|---|
| pycounts_cxy24-0.1.0.tar.gz | 2.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pycounts_cxy24-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.7 kB
Release files / pycounts_cxy24-0.1.0.tar.gz
| Download URL | pycounts_cxy24-0.1.0.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
de63a3d284f95dab3c5a384712dfd6b56df4c2a20782ad6bc269d7faff1c6b3f
|
|
BLAKE2b-256 checksum How to use checksums |
c8a583bd15f7ebbc0a2d989ffc351e7509a0f188716a90958659f001daf51cad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.12.0 Windows/11
|
Release files / pycounts_cxy24-0.1.0-py3-none-any.whl
| Download URL | pycounts_cxy24-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d6bcf6b95567313288fd11e1b0d28b0f982790586806d8031d5a85cd1ea49999
|
|
BLAKE2b-256 checksum How to use checksums |
85d2df790725baa4c28f39d25dd301b6c566aeaa798a7f2467628e1044dd616c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.12.0 Windows/11
|