Calculate word counts in a text file!
Project description
pycounts_JW
Calculate word counts in a text file!
Installation
$ pip install pycounts_JW
Usage
pycounts_JW
can be used to count words in a text file and plot results
as follows:
from pycounts_JW.pycounts import count_words
from pycounts_JW.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_JW
was created by Jessie Wong. It is licensed under the terms of the MIT license.
Credits
pycounts_JW
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_JW-0.1.0.tar.gz
(3.2 kB
view details)
Built Distribution
File details
Details for the file pycounts_JW-0.1.0.tar.gz
.
File metadata
- Download URL: pycounts_JW-0.1.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.8 CPython/3.9.9 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 344efcc4725c39c1bb8d59186b37c5e2b5b47527d578d79683b72bc781db7195 |
|
MD5 | d292b4cc1ee0d59a77a84eace7fa55e9 |
|
BLAKE2b-256 | a7b28309c75ea40902c71c8e3434093edd200847bb5ba1c347acb9cfd9679e51 |
File details
Details for the file pycounts_JW-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: pycounts_JW-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.8 CPython/3.9.9 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9cc2afe955d73f4637680b7a1351bc1b41bed953d16f5c6f7cbcade8484c988c |
|
MD5 | b653936c81134e1a5c15a4884bba86b9 |
|
BLAKE2b-256 | cf09640ecffff873944def2da9c19f5efbd0579e5f409bf45e3cdc802e2eb8b0 |