Calculate word counts in a text file!
Project description
pycounts_NR
Calculate word counts in a text file!
Installation
$ pip install pycounts_NR
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_NR
was created by Nagraj Rao. It is licensed under the terms of the MIT license.
Credits
pycounts_NR
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_NR-0.1.0.tar.gz
(3.3 kB
view details)
Built Distribution
File details
Details for the file pycounts_NR-0.1.0.tar.gz
.
File metadata
- Download URL: pycounts_NR-0.1.0.tar.gz
- Upload date:
- Size: 3.3 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 | ad1fd1b713d6ad9e8bd78a2f3ac3ea9f7c8413f4979044c238660593dd9a5bc0 |
|
MD5 | 1d517ebe970cd10082a83e09584d0dc8 |
|
BLAKE2b-256 | 25d3ca1092fbd6349d7a379a4d46c5b675fff4ba96d6d990e231e4d60e5025ec |
File details
Details for the file pycounts_NR-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: pycounts_NR-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 | 87ffccf409062aeebd2635669ced268df60b23fbbc9bd1c09d68812682160b44 |
|
MD5 | 513350bf81053d4bb53abab2081f96b0 |
|
BLAKE2b-256 | 1f84437ed22258b8b1e0014b6ebe3bcaeace48b5c938f4e450f8545e616a3e43 |