calculate word counts in a text
Project description
pycounts_chen_test
calculate word counts in a text
Installation
$ pip install pycounts_chen_test
Usage
pycounts_chen_test
can be used to count words in a text file and plot results
as follows:
from pycounts_chen_test.pycounts_chen_test import count_words
from pycounts_chen_test.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_chen_test
was created by Ben Chen. It is licensed under the terms of the MIT license.
Credits
pycounts_chen_test
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_chen_test-0.1.0.tar.gz
.
File metadata
- Download URL: pycounts_chen_test-0.1.0.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.9.18 Darwin/22.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ec0df4d0e0188b88c8667926b4756b3f49c620293dfa15980f36745ad66514e |
|
MD5 | fc3af50f0afcd1ecd39b471b4a181822 |
|
BLAKE2b-256 | b82c7c2ef79a6c6835ae9ead619c7100b6bbb33a3a0f288e30d41c94e15bd699 |
File details
Details for the file pycounts_chen_test-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: pycounts_chen_test-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.7.1 CPython/3.9.18 Darwin/22.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5c97883dc88b2d0e59c342759148873300faa945434c79cae132f3ec8012715 |
|
MD5 | 745b4ec0fc9cfcb9719ccf5df28c5887 |
|
BLAKE2b-256 | f897360c2c730f6ae2aed53d8c60d3e5868522c01a1b612482860fdd30a240ad |