Calculate word counts in a text file
Project description
pycountsmm1
Calculate word counts in a text file
Installation
$ pip install pycountsmm1
Usage
pycountsmm1 can be used to count words in a text file and plot results
as follows:
from pycountsmm1.pycountsmm1 import count_words
from pycountsmm1.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
pycountsmm1 was created by Melisa Maidana. It is licensed under the terms of the MIT license.
Credits
pycountsmm1 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pycountsmm1-0.1.0.tar.gz.
File metadata
- Download URL: pycountsmm1-0.1.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.9.9 Darwin/21.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
181a04fed99b4b6d00236304e25c5540e86261a74977ef0b2bd3e969cfdd5d51
|
|
| MD5 |
c7177add10af91615b98b1f6f3891b78
|
|
| BLAKE2b-256 |
1363a81aa00872b84141b2259f1a915c1558568d6e100009b6f6d0cda1b116ad
|
File details
Details for the file pycountsmm1-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pycountsmm1-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.9.9 Darwin/21.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
88bcf6759fcbfeef3a592dcc93cddc5615dec2512bf9ae02355a0b00234356ae
|
|
| MD5 |
a4c44d62b38e0b33479b7456b52bc23b
|
|
| BLAKE2b-256 |
1bc173789db71e62ba734baa9fdbf4db472778f6bc9bf6c73bdec218c7149724
|