pycricketpred
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.
Metadata
Release files for pycricketpred 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pycricketpred-0.1.1.tar.gz | 9.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pycricketpred-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 20.5 kB
Release files / pycricketpred-0.1.1.tar.gz
| Download URL | pycricketpred-0.1.1.tar.gz |
|---|---|
| Size | 9.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6ca4211697c9f06c1b1f82156a47343dfbd46d7f70aecfc5b669001d880aea66
|
|
BLAKE2b-256 checksum How to use checksums |
bbcdf681fb8ea697eb9333604e8de3b623c66d433c875732ce8854701bc08578
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Release files / pycricketpred-0.1.1-py3-none-any.whl
| Download URL | pycricketpred-0.1.1-py3-none-any.whl |
|---|---|
| Size | 10.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d7290cb758222a58579df761189b34cf5ad8e830a994ea0359e0c79a677758c1
|
|
BLAKE2b-256 checksum How to use checksums |
d519b16b2f2572357a9d7c3d9556b467d62282f1df703b72b862a1aa3b4e195a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|