Calculate word counts in a text file!
Project description
pycounts_pfazlali
Calculate word counts in a text file!
Installation
$ pip install pycounts_pfazlali
Usage
pycounts_pfazlali
can be used to count words in a text file and plot results
as follows:
from pycounts_pfazlali.pycounts_pfazlali import count_words
from pycounts_pfazlali.plotting_pfazlali 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_pfazlali
was created by Paniz Fazlali. It is licensed under the terms of the MIT license.
Credits
pycounts_pfazlali
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
Built Distribution
Close
Hashes for pycounts_pfazlali-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86730e413e12a76e8a0e164c38a9475ed1896690971fb2a72426415912bdb86f |
|
MD5 | f37c17ee1c01e8c117d7c022685ca7ea |
|
BLAKE2b-256 | b34460082ab924969a4fc555954f72f93d8bf804f65183b14ba4ce8cc31374ad |