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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

Supported by

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