Calculating word counts in a new text file.
Project description
pycounts_mn24
Calculate word counts in a text file!
Installation
$ pip install pycounts_mn24
Usage
pycounts_mn24
can be used to count words in a text file and plot results
as follows:
from pycounts_mn24.pycounts_mn24 import count_words
from pycounts_mn24.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_mn24
was created by Tomas Beuzen. It is licensed under the terms
of the MIT license.
Credits
pycounts_mn24
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
File details
Details for the file pycounts_mn24-0.1.0.tar.gz
.
File metadata
- Download URL: pycounts_mn24-0.1.0.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.9.18 Darwin/22.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 39967f2359fcfb97750cea993c18860f51fade410fe49f941c2a37ba10034f15 |
|
MD5 | 1d775d5734e764867936e387282f3fbb |
|
BLAKE2b-256 | 4fd53e8e6ff3a902b158c50a9b5a40b4c066ba7002d779d22da28cbe0f9aa32a |
File details
Details for the file pycounts_mn24-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: pycounts_mn24-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.9.18 Darwin/22.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b44deafc17143498386e671a78c13d347ccdc70f2d190873777c713d8846351c |
|
MD5 | 2df2076fa4a55f5b5a8a5e141c3686f7 |
|
BLAKE2b-256 | a9302ec7e4d8796f33df6d80170b9559fbc119981200160724545109ed21afc0 |