IPL 2023 Project Notes
IPL 2023 Project Notes
IPL 2023 Project Notes
Dataset is available in “Free Data Analyst Course” kindly download in our android
application: https://play.google.com/store/apps/details?id=com.logixhunt.ihhpet
Problem Statement 1: Analysis of IPL all season data and find the
Most Run Score by Team in year 2008,2012,2017 & 2020?
Problem Statement 2: Analyse the data and show most IPL matches
played in Venue in 2010,2015,2018 and 2021 IPL season?
Problem Statement 3: Show total runs, total wickets and run rate
according to season wise?
Problem Statement 5: Analysis of IPL 2008-21 data and find the top
10 bowlers in the season 2008 to 2021?
Problem Statement 6: Compare IPL team bowling stats & analyse the
runs, no balls and wide balls according to the season wise?
Output:
To calculate the most run scored by a team across all seasons we have grouped by Team
and have summed up the run scored by them. And finally, sort them in descending order.
In []:
import math
import numpy as np
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
%matplotlib inline
df=pd.read_csv('data.csv')
df.head()
df.info()
df.groupby(['batting_team'])['run'].sum().sort_values(ascending=False)
plt.figure(figsize=(10,8))
data =
df.groupby(['match_id','season']).count().index.droplevel(level=0).value_co
unts().sort_index()
sns.barplot(y=data.index,x=data,orient='h')
plt.xlabel('Matches Played')
plt.ylabel('Season')
plt.show(
[Out] :
batting_team