Calculate word counts in a file text
Project description
pycounts_jo
Calculate word counts in a file text
Installation
$ pip install pycounts_jo
Usage
pycounts_jo
can be used to count words in a text file and plot results
as follows:
from pycounts_jo.pycounts_jo import count_words
from pycounts_jo.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_jo
was created by Jasmine Ortega. It is licensed under the terms of the MIT license.
Credits
pycounts_jo
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_jo-0.1.0.tar.gz
(3.3 kB
view details)
Built Distribution
File details
Details for the file pycounts_jo-0.1.0.tar.gz
.
File metadata
- Download URL: pycounts_jo-0.1.0.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.9.9 Darwin/20.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1fc3e24195e57d75786b0a4dee5f64e99ee00d5a669cfb1bbe60a0d07a5bc9fa |
|
MD5 | 2747a09832de1c12ce77f104573c8e92 |
|
BLAKE2b-256 | ff84d835a79e6d0df703cb07d487a57fccea1a7d45e321cc6c3829f29e261320 |
File details
Details for the file pycounts_jo-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: pycounts_jo-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.9.9 Darwin/20.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49d5d282dcdeb049c288bc5e6213ebd5b804cb12f8f5e6ebaba1075bca960120 |
|
MD5 | 80ac5709167eaf4a58f44c03d4900581 |
|
BLAKE2b-256 | 19d0dec54c8d4c7c171c39f2f458249fa86ea594c5b3880ec305745d135239bd |