Ipl Analysis
Ipl Analysis
I.P.L ANALYSIS
2024-2025
Index
6. Source Code
7. Output
8. Bibliography
CERTIFICATE
This is to certify that project report entitled
I.P.L. Analysis of India has been successfully
completed by Name _____Roll No. –
Is being submitted for Practical Examination of
Of Class 12 (AISSCE -2024-2025) in
Information Practices(Code-065).
No part of this project is being submitted to any
other school/ institute for award for any
Certificate / Degree.
Pandas:
plt.rcParams['figure.figsize'] = (14, 8)
sns.set_style("darkgrid")
df = pd.read_csv("E:\ipl1.csv")
print('---------------------------------------------------------------------------')
print('---------------------------------------------------------------------------')
print(df.info())
print()
print('---------------------------------------------------------------------------')
print('---------------------------------------------------------------------------')
print()
print('---------------------------------------------------------------------------')
print('---------------------------------------------------------------------------')
print('How many seasons data we’ve got in the dataset?')
print(df['season'].unique())
print()
print('---------------------------------------------------------------------------')
print('---------------------------------------------------------------------------')
print(df.iloc[df['win_by_runs'].idxmax()])
print()
print('---------------------------------------------------------------------------')
print('---------------------------------------------------------------------------')
print(df.iloc[df['win_by_wickets'].idxmax()]['winner'])
print()
print('---------------------------------------------------------------------------')
print('---------------------------------------------------------------------------')
print(df.iloc[df[df['win_by_runs'].ge(1)].win_by_runs.idxmin()]['winner'])
print()
print('---------------------------------------------------------------------------')
print('---------------------------------------------------------------------------')
print(df.iloc[df[df['win_by_wickets'].ge(1)].win_by_wickets.idxmin()])
print()
print('---------------------------------------------------------------------------')
print('---------------------------------------------------------------------------')
sns.countplot(x='season', data=df)
plt.show()
print()
print('---------------------------------------------------------------------------')
print('---------------------------------------------------------------------------')
data = df.winner.value_counts()
print()
print('---------------------------------------------------------------------------')
print('---------------------------------------------------------------------------')
print('The Players who got maximum times Man of the Match are:::')
top_players = df.player_of_match.value_counts()[:10]
fig, ax = plt.subplots()
ax.set_ylim([0,20])
ax.set_ylabel("Count")
#top_players.plot.bar()
plt.show()
OUTPUT:
---------------------------------------------------------------------------
---------------------------------------------------------------------------
<class 'pandas.core.frame.DataFrame'>
None
---------------------------------------------------------------------------
---------------------------------------------------------------------------
---------------------------------------------------------------------------
---------------------------------------------------------------------------
[2017 2008 2009 2010 2011 2012 2013 2014 2015 2016 2018]
---------------------------------------------------------------------------
---------------------------------------------------------------------------
id 44
season 2017
city Delhi
date 5/6/2017
toss_decision field
result normal
dl_applied 0
win_by_runs 146
win_by_wickets 0
umpire2 CK Nandan
umpire3 NaN
---------------------------------------------------------------------------
---------------------------------------------------------------------------
---------------------------------------------------------------------------
---------------------------------------------------------------------------
Mumbai Indians
---------------------------------------------------------------------------
---------------------------------------------------------------------------
id 560
season 2015
city Kolkata
date 5/9/2015
toss_decision bat
result normal
dl_applied 0
winner Kolkata Knight Riders
win_by_runs 0
win_by_wickets 1
player_of_match AD Russell
umpire1 AK Chaudhary
umpire3 NaN
---------------------------------------------------------------------------
---------------------------------------------------------------------------
---------------------------------------------------------------------------
---------------------------------------------------------------------------
The Most Successful IPL Team is:::
---------------------------------------------------------------------------
---------------------------------------------------------------------------
The Players who got maximum times Man of the Match are:::
Bibliography
● Google Images