Calculate word counts in a text file!
Project description
pycountsrmb2024
Calculate word counts in a text file!
Installation
$ pip install pycountsrmb2024
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
pycountsrmb2024
was created by Rachel Bouwer. It is licensed under the terms of the MIT license.
Credits
pycountsrmb2024
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 pycountsrmb2024-0.1.0.tar.gz
.
File metadata
- Download URL: pycountsrmb2024-0.1.0.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.9.18 Darwin/22.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b4d0e4fb5ad4bb1c929b93f70c288c6335d7a281649fe5388babc0a179d8f21 |
|
MD5 | 43079c2f7781b6e8371b8c1d80c8298f |
|
BLAKE2b-256 | 1ad610d02cf77521214d5828a762235532cad855d3205ed34b6bc53241a88e83 |
File details
Details for the file pycountsrmb2024-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: pycountsrmb2024-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.7.1 CPython/3.9.18 Darwin/22.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18bf616c8053a477d8df9e3d9594de80da3410bbcbf69510f796366d129e0ab2 |
|
MD5 | f2befc3977f2507bc8f79c81594f6147 |
|
BLAKE2b-256 | 1c2e1afc9753f826adad71f6495796d7bdcc00a847fbbadb60ea8070679b171d |