Skip to main content

A package for predicting and find interesting cricket related statistics!

Project description

pycricketpred

codecov

A package for predicting and find interesting cricket related statistics!

Installation

$ pip install pycricketpred

Usage

The pycricketpred package has 4 modules (data_wrangling, data_cleaning, eda and modelling) which perform a wide variety of functions on ball-by-ball cricket data, in the json format.

from pycricketpred.data_wrangling import *
from pycricketpred.data_cleaning import *
from pycricketpred.eda import *
from pycricketpred.modelling import *

# parse through json files in a zipped archive and convert the data into parquet format

process_cricket_jsons('data/t20s_json', 'data/t20s_parquet')

# create majority dtype mapping dictionary and create a dataframe from the mapping

majority_mapping = determine_majority_dtypes(['2203.parquet', '21332.parquet'], 'data/t20s_parquet')
apply_dtypes_and_concatenate(['2203.parquet', '21332.parquet'], 'data/t20s_parquet', majority_mapping)

# create histograms for variable distribution, specifying width and height

vis_bar(cricket_df, 'over', 10, 20)

# Create and save histograms for wicket distribution across categories

hist_chart(cricket_df, 'over', 'chart1.png', 'images/')

and perform a wide range of modelling tasks, including splitting data, preprocessing, and creating and evaluating classification models using a confusion matrix.

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

pycricketpred was created by DSCI 310 Group 11: Alex Lin, Jackson Siemens, Shruti Vijaykumar Seetharam, Hanlin Zhao. It is licensed under the terms of the MIT license.

Credits

pycricketpred 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

pycricketpred-0.1.1.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pycricketpred-0.1.1-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file pycricketpred-0.1.1.tar.gz.

File metadata

  • Download URL: pycricketpred-0.1.1.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for pycricketpred-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6ca4211697c9f06c1b1f82156a47343dfbd46d7f70aecfc5b669001d880aea66
MD5 0584d8f53ae5068572837158c2cc2745
BLAKE2b-256 bbcdf681fb8ea697eb9333604e8de3b623c66d433c875732ce8854701bc08578

See more details on using hashes here.

File details

Details for the file pycricketpred-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: pycricketpred-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 10.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for pycricketpred-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d7290cb758222a58579df761189b34cf5ad8e830a994ea0359e0c79a677758c1
MD5 b378c6024e0b86641eaca69afe223595
BLAKE2b-256 d519b16b2f2572357a9d7c3d9556b467d62282f1df703b72b862a1aa3b4e195a

See more details on using hashes here.

Supported by

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