Heroku url - https://analysis-ipl.herokuapp.com/api/match/winner This repo contains both Django & jupyter notebook (IPL Data Analysis.ipynb)
Steps: pip install -r requirements.txt
./manage.py runserver
Below API URL Format which can be change dynamically based on the input. Below are the list of the supported parameters.
- year (can be any one from the dataset season)
- size (Input selection like top 1 team ex size=1)
- location (it's boolean)
- toss_decision (It's boolean)
- win_by_runs (It's boolean)
http://127.0.0.1:8000/api/match/<winner_type> it can be changed based on the column name present in the dataset.
• Top 4 teams in terms of wins
Top 4 team in the selected Season: http://127.0.0.1:8000/api/match/winner?size=4&year=2012
Top 4 team in All Season: http://127.0.0.1:8000/api/match/winner?size=4
### Other:
In All Season: http://127.0.0.1:8000/api/match/winner
In Selected or specific season: http://127.0.0.1:8000/api/match/winner?year=2008
• Which team won the most number of tosses in the season
In the selected Season: http://127.0.0.1:8000/api/match/toss_winner?size=1&year=2012
All Season: http://127.0.0.1:8000/api/match/toss_winner?size=1
Other:
In All Season: http://127.0.0.1:8000/api/match/toss_winner
In Selected or specific season: http://127.0.0.1:8000/api/match/toss_winner
• Which player won the maximum number of Player of the Match awards in the whole season
All Season: http://127.0.0.1:8000/api/match/player_of_match?size=1
In the selected Season: http://127.0.0.1:8000/api/match/player_of_match?size=1&year=2012
Other:
In All Season: http://127.0.0.1:8000/api/match/player_of_match
In Selected or specific season: http://127.0.0.1:8000/api/match/player_of_match
• Which team won max matches in the whole season
All Season: http://127.0.0.1:8000/api/match/winner?size=1
Selected Season: http://127.0.0.1:8000/api/match/winner?size=1&year=2012
Other:
In All Season: http://127.0.0.1:8000/api/match/winner
In Selected or specific season: http://127.0.0.1:8000/api/match/winner?year=2008
• Which location has the most number of wins for the top team
All Season: http://127.0.0.1:8000/api/match/winner?location=1&size=1
Selected Season: http://127.0.0.1:8000/api/match/winner?location=1&size=1&year=2012
Other:
In All Season: http://127.0.0.1:8000/api/match/winner?location=1
In Selected or specific season: http://127.0.0.1:8000/api/match/winner?location=1&year=2008
• Which % of teams decided to bat when they won the toss
All Season: http://127.0.0.1:8000/api/match/winner?toss_decision=1
Selected Season: http://127.0.0.1:8000/api/match/winner?toss_decision=1&year=2012
Other:
In All Season: http://127.0.0.1:8000/api/match/winner?toss_decision=1
In Selected or specific season: http://127.0.0.1:8000/api/match/winner?toss_decision=1&year=2008
• Which location hosted most number of matches
All Season: http://127.0.0.1:8000/api/match/venue?size=1
Selected Season: http://127.0.0.1:8000/api/match/venue?size=1&year=2012
Other:
In All Season: http://127.0.0.1:8000/api/match/venue
In Selected or specific season: http://127.0.0.1:8000/api/match/venue?year=2008
• Which team won by the highest margin of runs for the season
All Season: http://127.0.0.1:8000/api/match/win_by_runs
Selected Season: http://127.0.0.1:8000/api/match/win_by_runs?year=2012
Other:
In All Season: http://127.0.0.1:8000/api/match/win_by_runs
In Selected or specific season: http://127.0.0.1:8000/api/match/win_by_runs?year=2008
• Which team won by the highest number of wickets for the season
Selected Season: http://127.0.0.1:8000/api/match/win_by_wickets?year=2012
• How many times has a team won the toss and the match
Selected Season: http://127.0.0.1:8000/api/match/winner?win_toss_and_match=1
• Which Batsman gave away the most number of runs in a match for the selected season
Selected Season: http://127.0.0.1:8000/api/match/batsman?year=2012&size=1
• Most number of catches by a fielder in a match for the selected season
Selected Season: http://127.0.0.1:8000/api/match/fielder?year=2012&size=1
• Top 4 teams in terms of wins
Top 4 team in the selected Season: https://analysis-ipl.herokuapp.com/api/match/winner?size=4&year=2012
Top 4 team in All Season: https://analysis-ipl.herokuapp.com/api/match/winner?size=4
### Other:
In All Season: https://analysis-ipl.herokuapp.com/api/match/winner
In Selected or specific season: https://analysis-ipl.herokuapp.com/api/match/winner?year=2008
• Which team won the most number of tosses in the season
In the selected Season: https://analysis-ipl.herokuapp.com/api/match/toss_winner?size=1&year=2012
All Season: https://analysis-ipl.herokuapp.com/api/match/toss_winner?size=1
Other:
In All Season: https://analysis-ipl.herokuapp.com/api/match/toss_winner
In Selected or specific season: https://analysis-ipl.herokuapp.com/api/match/toss_winner
• Which player won the maximum number of Player of the Match awards in the whole season
All Season: https://analysis-ipl.herokuapp.com/api/match/player_of_match?size=1
In the selected Season: https://analysis-ipl.herokuapp.com/api/match/player_of_match?size=1&year=2012
Other:
In All Season: https://analysis-ipl.herokuapp.com/api/match/player_of_match
In Selected or specific season: https://analysis-ipl.herokuapp.com/api/match/player_of_match
• Which team won max matches in the whole season
All Season: https://analysis-ipl.herokuapp.com/api/match/winner?size=1
Selected Season: https://analysis-ipl.herokuapp.com/api/match/winner?size=1&year=2012
Other:
In All Season: https://analysis-ipl.herokuapp.com/api/match/winner
In Selected or specific season: https://analysis-ipl.herokuapp.com/api/match/winner?year=2008
• Which location has the most number of wins for the top team
All Season: https://analysis-ipl.herokuapp.com/api/match/winner?location=1&size=1
Selected Season: https://analysis-ipl.herokuapp.com/api/match/winner?location=1&size=1&year=2012
Other:
In All Season: https://analysis-ipl.herokuapp.com/api/match/winner?location=1
In Selected or specific season: https://analysis-ipl.herokuapp.com/api/match/winner?location=1&year=2008
• Which % of teams decided to bat when they won the toss
All Season: https://analysis-ipl.herokuapp.com/api/match/winner?toss_decision=1
Selected Season: https://analysis-ipl.herokuapp.com/api/match/winner?toss_decision=1&year=2012
Other:
In All Season: https://analysis-ipl.herokuapp.com/api/match/winner?toss_decision=1
In Selected or specific season: https://analysis-ipl.herokuapp.com/api/match/winner?toss_decision=1&year=2008
• Which location hosted most number of matches
All Season: https://analysis-ipl.herokuapp.com/api/match/venue?size=1
Selected Season: https://analysis-ipl.herokuapp.com/api/match/venue?size=1&year=2012
Other:
In All Season: https://analysis-ipl.herokuapp.com/api/match/venue
In Selected or specific season: https://analysis-ipl.herokuapp.com/api/match/venue?year=2008
• Which team won by the highest margin of runs for the season
All Season: https://analysis-ipl.herokuapp.com/api/match/win_by_runs
Selected Season: https://analysis-ipl.herokuapp.com/api/match/win_by_runs?year=2012
Other:
In All Season: https://analysis-ipl.herokuapp.com/api/match/win_by_runs
In Selected or specific season: https://analysis-ipl.herokuapp.com/api/match/win_by_runs?year=2008
• Which team won by the highest number of wickets for the season
Selected Season: https://analysis-ipl.herokuapp.com/api/match/win_by_wickets?year=2012
• How many times has a team won the toss and the match
Selected Season: https://analysis-ipl.herokuapp.com/api/match/winner?win_toss_and_match=1
• Which Batsman gave away the most number of runs in a match for the selected season
Selected Season: https://analysis-ipl.herokuapp.com/api/match/batsman?year=2012&size=1
• Most number of catches by a fielder in a match for the selected season
Selected Season: https://analysis-ipl.herokuapp.com/api/match/fielder?year=2012&size=1