This project is designed to analyze Indian Premier League (IPL) data using JavaScript. By running the index.js file, you can automatically convert CSV data into JSON and execute various queries to obtain insightful information about IPL matches.
-
Clone the repo
git clone https://github.com/your-username/ipl-project.git cd ipl-project -
Install dependencies:
npm install
Run the following command to execute the queries and generate output files:
node index.jsThe output will be stored in the src/public/output directory, with each query having its corresponding JSON file.
-
Number of matches played per year for all the years in IPL:
- Output: 1-matchesPerYear.json
-
Number of matches won per team per year in IPL:
- Output: 2-matchesWonPerYearPerTeam.json
-
Extra runs conceded per team in the year 2016:
- Output: 3-extraRunsPerTeam2016.json
-
Top 10 economical bowlers in the year 2015:
- Output: 4-top10EconomicalBowlersIn2015.json
-
Number of times each team won the toss and also won the match:
- Output: 5-teamWonTossAndMatch.json
-
Player who won the highest number of Player of the Match awards for each season:
- Output: 6-highestPlayerMatchForEverySeason.json
-
Strike rate of a batsman for each season:
- Output: 7-strikeRateOfaBatsmanForEachSeason.json
-
Highest number of times one player has been dismissed by another player:
- Output: 8-highestOnePlayerDismissedAnother.json
-
Bowler with the best economy in super overs:
- Output: 9-bestEcoBowlerInSuperOvers.json