Skip to main content

Make a function that counts how many times a word shows up in a given text

Project description

pycounts_pdc_mds

Make a function that counts how many times a word shows up in a given text

Installation

$ pip install pycounts_pdc_mds

Usage

pycounts_pdc_mds

Calculate word counts in a text file!

Installation

$ pip install pycounts

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 was created by Tomas Beuzen. It is licensed under the terms of the MIT license.

Credits

pycounts was created with cookiecutter and the py-pkgs-cookiecutter template.

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_pdc_mds was created by Paolo Codina. It is licensed under the terms of the MIT license.

Credits

pycounts_pdc_mds was created with cookiecutter and the py-pkgs-cookiecutter template.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pycounts_pdc_mds-0.1.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

pycounts_pdc_mds-0.1.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file pycounts_pdc_mds-0.1.0.tar.gz.

File metadata

  • Download URL: pycounts_pdc_mds-0.1.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.9.18 Windows/10

File hashes

Hashes for pycounts_pdc_mds-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f8e8d9cf1d8407418d302f371b7d75b372563c30fa8539c72086eed1709cdf65
MD5 54932f1c1b5c73250389ba0ba81a33d8
BLAKE2b-256 a0ba633cbf831761d2e0c2d47fe98be42cec4751f7ab283f7a4a647d20722d02

See more details on using hashes here.

File details

Details for the file pycounts_pdc_mds-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pycounts_pdc_mds-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 032e1f5029d606e953e463e08cd9b15901322364e3a48157b6ae1cc6f0002302
MD5 c149cb90a79b8eb1e44f46b69f8e52eb
BLAKE2b-256 7935f161e4497430daf31074b4524c7a2941cb45c71f0870a72a851ca5c7254b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page