Calculate word counts in a text file!
Project description
pycounts_amc
Calculate word counts in a text file!
Installation
$ pip install pycounts
Usage
pycounts_amc
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_amc
was created by Arlin Cherian. It is licensed under the terms of the MIT license.
Credits
pycounts_amc
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_amc-0.1.1.tar.gz
.
File metadata
- Download URL: pycounts_amc-0.1.1.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.9.9 Darwin/21.2.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03c1486cc4f4241a41393468ebd55b1b034d90624ff21bc7254f2820f7a1c075 |
|
MD5 | 9f4b3f92dc1ddcdd697b41b4c11e72f8 |
|
BLAKE2b-256 | 3ada0a4ba78d3dc116f2f491f25b519e9a11b6bf1888dd6413bdc8a2676a5776 |
File details
Details for the file pycounts_amc-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: pycounts_amc-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.9.9 Darwin/21.2.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7076d90431712b00474531a5fddf4616d3121376c63bcc3d4a627cdcf03d5861 |
|
MD5 | 5e971b1ffd227d5304c4205a22462a0f |
|
BLAKE2b-256 | 2414d4ba46a1f5780524aaeed99c70d7bf60612998293d57e6309a76ec8780e6 |