A package for predicting and find interesting cricket related statistics!
Project description
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.
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
Hashes for pycricketpred-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7290cb758222a58579df761189b34cf5ad8e830a994ea0359e0c79a677758c1 |
|
MD5 | b378c6024e0b86641eaca69afe223595 |
|
BLAKE2b-256 | d519b16b2f2572357a9d7c3d9556b467d62282f1df703b72b862a1aa3b4e195a |