Calculate words counts in a text file!
Project description
pycounts_ramg23
Calculate words counts in a text file!
Installation
$ pip install pycounts_ramg23
Usage
pycounts_ramg23
can be used to count words in a text file and plot results as follows:
from pycounts_ramg23.pycounts_ramg23 import count_words
from pycounts_ramg23.plotting import plot_words
import matplotlib.pyplot as plot
file_path = "test.txt" # path to your file_path
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_ramg23
was created by Rafael Montoya. It is licensed under the terms of the MIT license.
Credits
pycounts_ramg23
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_ramg23-0.1.0.tar.gz
.
File metadata
- Download URL: pycounts_ramg23-0.1.0.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.11.7 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85f046d1216e585508147ad45b726a2e1d6159b740aad65c94fdee38a424e90d |
|
MD5 | e392879e0b011d63acf466b66ff2cc83 |
|
BLAKE2b-256 | 41f1f8fd622fe07f9abeefce6dade72fefac68af125a0d8314634b66ad635467 |
File details
Details for the file pycounts_ramg23-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: pycounts_ramg23-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.5.1 CPython/3.11.7 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6c966f9a1fed06763d9633197a328e986570ebfd245c83f0d4f5a9dfce5b9ab |
|
MD5 | 398fc436152750d61bd70bc0fd2f764b |
|
BLAKE2b-256 | 7eed0c412411c787fe0294ccad1d8b60c3fdcfcf3a8471134de2d8dd0807fe9b |