Calculate word counts in a text file!
Project description
pycounts_hu
Calculate word counts in a text file!
Installation
$ pip install pycounts_hu
Usage
pycounts
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_hu
was created by Hu Zhao. It is licensed under the terms of the MIT license.
Credits
pycounts_hu
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
pycounts_hu-0.1.0.tar.gz
(3.2 kB
view details)
Built Distribution
File details
Details for the file pycounts_hu-0.1.0.tar.gz
.
File metadata
- Download URL: pycounts_hu-0.1.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.9.7 Linux/5.13.0-35-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64898bb2473666443de69eae185c001270c2b4dd9548ba8912fd1e2c94986639 |
|
MD5 | 2767e83899b6e66759002a404cc4bbdc |
|
BLAKE2b-256 | 70fdb17bc7951b2320990391c9fc38c1994b5ee7aa2d14625d2a8aef28cb4d21 |
File details
Details for the file pycounts_hu-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: pycounts_hu-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.9.7 Linux/5.13.0-35-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e46cec11a882d847c6de4f61fefe21b7e47b5e77cca0926531cf2957a2ebf885 |
|
MD5 | 59143e4f42e6b4483af8db302adb98a2 |
|
BLAKE2b-256 | 7f2fd2011c04357ff26904fa59f1be658f62f3688f0d457a7f1bcdad0c67bb7e |