Calculate word counts in a text file!
Project description
pycounts_wx
Calculate word counts in a text file!
Installation
$ pip install pycounts_wx
Usage
pycounts
can be used to count words in a text file and plot results
as follows:
from pycounts_wx.pycounts_wx import count_words
from pycounts_wx.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_wx
was created by Wenxin Xiang. It is licensed under the terms of the MIT license.
Credits
pycounts_wx
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_wx-0.1.4.tar.gz
(3.4 kB
view details)
Built Distribution
File details
Details for the file pycounts_wx-0.1.4.tar.gz
.
File metadata
- Download URL: pycounts_wx-0.1.4.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | facfd5534e5e6fc0d89013d690cdd897104b0592eced55a428aff5e195cd7eb6 |
|
MD5 | 81a8a28ad433d22f66ea34fcda6604e0 |
|
BLAKE2b-256 | c1c87a4bce344aa413294baf662de0b9167da546c00e5228070d53be73a38ffe |
File details
Details for the file pycounts_wx-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: pycounts_wx-0.1.4-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1488c12c7d6fb57d58dee47297b8462525f4ebefc606f7f9ec217fc8b45ca3ff |
|
MD5 | ffd81ae7c10c5b2f505c158fabe26762 |
|
BLAKE2b-256 | df50d13ba5b75fef1daffa7abbb47ee6d9122c30b4d691b40a997e8409cd2456 |