This repo consists of a source code of a python script to make specific anaylsis in IPL dataset using Datastructure.
You might be wondering on how graphs were plotted on raw dataset is done, well it aint that complicated as you may think.
We all all know that computer are good at numbers, so in order to plot graph we were designing a definite structure to the data in this case we used dictionaries , for plotting graph we used matplotlib .
This repo consist of a basic example on how to do that.
To get started with the code on this repo, you need to either clone or download this repo into your machine just as shown below;
git clone [email protected]:mountblue/cohort-16-python/gopinath_v/dataproject-python.git
Before you begin playing with the source code you might need to install the following libaries just as shown below;
pip install matplotlib
sudo apt-get install python3-tk
To run this code you need to have to download dictionaries, matches and umpires csv files and place these dataset in the same directory. If you want to install and setup virtualenv follow from step 1 or if you want to directly run it in editor follow from step2.
pip install virtualenv
To create a virtual environment, you must specify a path. You may provide any name in the place of :
virtualenv <mypython>
source mypython/bin/activate
$-> cd dataproject-python
$ cd dataproject-python-> python3 total_runs.py
$ cd dataproject-python-> python3 rcb_top_batsman.py
$ cd dataproject-python-> python3 foreign_umpire.py
$ cd dataproject-python-> python3 total_matches_by_team.py
if you have followed step1 use this command to get out of virtualenv
deactivate