Calculate word counts in a text file
Project description
ccpycounts
Calculate word counts in a text file
Installation
$ pip install ccpycounts
Usage
ccpycounts
can be used to count words in a text file and plot results
as follows:
from ccpycounts.ccpycounts import count_words
from ccpycounts.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
ccpycounts
was created by Caden Chan. It is licensed under the terms of the MIT license.
Credits
ccpycounts
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
ccpycounts-0.1.0.tar.gz
(2.7 kB
view hashes)
Built Distribution
Close
Hashes for ccpycounts-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f81c097adc0e45868d9793cdca5f29e94aa14f747e4c307095167664ff753613 |
|
MD5 | ad0ec3e7d248ad51c2a8db5963f2c958 |
|
BLAKE2b-256 | 3431e5c95708ae764c2ad46a2530007284cd99955592da677d9bdd1acd18dc19 |