Coder Social home page Coder Social logo

javascript-ipl-analysis's Introduction

Dataproject :: JavaScript

IPL-ANALYSIS-JAVASCRIPT

This repo consists of a source code of a python script and JavaScript to make specific anaylsis in IPL dataset using Data-structure.

IPL

How is it done?

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.

Getting started

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

Running the App

Part 1 Creating Json file

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.

open the terminal

step1

Install the virtualenv package

pip install virtualenv

Create the virtual environment

To create a virtual environment, you must specify a path. You may provide any name in the place of :

virtualenv <mypython>

Activate the virtual environment

source mypython/bin/activate

step2

$-> 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

Part 2 Running the app in Python server

$ 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.

Deactivate the virtual environment

if you have followed step1, use this command to get out of virtualenv

deactivate

javascript-ipl-analysis's People

Contributors

mukund-mountblue avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.