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.3.tar.gz
(3.4 kB
view details)
Built Distribution
File details
Details for the file pycounts_wx-0.1.3.tar.gz
.
File metadata
- Download URL: pycounts_wx-0.1.3.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 | b754d3a7c8e270bb79afb794b98dceb4bb7542e995d61b7a3ea92e7adf45c643 |
|
MD5 | b6d7eac64ef7ed75f3e1836391005038 |
|
BLAKE2b-256 | 28b859fbb08c19eb6f85986f1c384207eef8711ee09af4073ef8c637020b38e9 |
File details
Details for the file pycounts_wx-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: pycounts_wx-0.1.3-py3-none-any.whl
- Upload date:
- Size: 3.6 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 | 6401ea3684d89e66e467a75bb4a6bddab3f07ab3c46e942978d8f29bcdc243e5 |
|
MD5 | 317faef0aefb81387314060617ed48e8 |
|
BLAKE2b-256 | 87fcfae428eabd47a98706a5a65fe0948321a18987ec8e2a579abf2483b7bf1f |