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
File details
Details for the file pycounts_pfazlali-0.1.0.tar.gz
.
File metadata
- Download URL: pycounts_pfazlali-0.1.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.9.9 Darwin/20.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47eb78210d7d9f26c6395f1ec082daa8ca6d333e96006321badcc123ce242666 |
|
MD5 | 3f5e030094f32f39fe39d649b8b26d1c |
|
BLAKE2b-256 | ade8bfef52787f6eb0d1a69465c82725361bda577e82f18f7ae24e82f5554bc7 |
File details
Details for the file pycounts_pfazlali-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: pycounts_pfazlali-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.9.9 Darwin/20.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86730e413e12a76e8a0e164c38a9475ed1896690971fb2a72426415912bdb86f |
|
MD5 | f37c17ee1c01e8c117d7c022685ca7ea |
|
BLAKE2b-256 | b34460082ab924969a4fc555954f72f93d8bf804f65183b14ba4ce8cc31374ad |