Calculate word counts in a text file!
Project description
pycounts_geeto
Calculate word counts in a text file!
Installation
$ pip install pycounts_geeto
Usage
pycounts
can be used to count words in a text file and plot results as follows:
from pycounts_geeto.pycounts_geeto import count_words
from pycounts_geeto.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_geeto
was created by Kevin Robinson. It is licensed under the terms of the MIT license.
Credits
pycounts_geeto
was created with cookiecutter
and the py-pkgs-cookiecutter
template.
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
pycounts_geeto-0.3.0.tar.gz
(85.5 kB
view hashes)
Built Distribution
Close
Hashes for pycounts_geeto-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac0822ac26e0a49808dcad8809c3ecefd7235d82e55d4152be602e0b6a14a201 |
|
MD5 | 27b3b40f468e505bb895f5158c3bc401 |
|
BLAKE2b-256 | 9e1a173c8c3d46e2aeb5b0cff5f2d5af51bbfcd8520e6106b9155b8808977d33 |