This repo consists of a source code of a python script and JavaScript to make specific anaylsis in IPL dataset using Data-structure.
You might be wondering on how graphs were plotted on a raw dataset is done, well it was not that complicated as you may think.
We all know that computers 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 to select required data from csv file and made a json file , with the data in json file we have plotted Highcharts graphs using JavaScript.
This repo consists of a basic example of 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-javascript.git
To run this, code you need to have to download dictionaries, matches and umpires csv files and place these datasets 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-javascript
$ cd dataproject-javascript-> python3 total_runs.py
$ cd dataproject-javascript-> python3 rcb_top_batsman.py
$ cd dataproject-javascript-> python3 foreign_umpire.py
$ cd dataproject-javascript-> python3 total_matches_by_team.py
$ cd dataproject-javascript-> python3 -m http.server
Now you can access the app on your local server
When you open your local server, you will see all the files in the data-project in that select index1.html to run the app.
if you have followed step1, use this command to get out of virtualenv
deactivate