0% found this document useful (0 votes)
29 views19 pages

Ipl Analysis

IP Project

Uploaded by

luckynichlani842
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views19 pages

Ipl Analysis

IP Project

Uploaded by

luckynichlani842
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 19

School Logo here

School Name Here

I.P.L ANALYSIS

2024-2025
Index

S. No Topic Page No.


1. Certificate
2. Acknowledgement
3. About Project and Software
used
4. I.P L. Analysis System
(Introduction)
5. Python Overview

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.

Guided By – Examiner Name/Signature


Mrs Arpana Justina _____________________
AKNOWLEDGEMENT
I would like to express my special thanks of gratitude
to my teacher Mrs.Arpana Justina as well as our
principal sir who gave me the golden opportunity to
do this wonderful project 0n the topic :
‘ I. P. L. Analysis of India’
which also helped me in doing a lot of Research and I
came to know about so many new things I am really
thankful to them.
Secondly, I would also like to thank my parents and
friends who helped me a lot in finalizing this project
within the limited time frame.
Name & Roll No. of Student : XYZ
AIM:To Develop:
Literacy Rate Analysis System of India
Front End:
Python 3.8.2
Back End:
My SQL Server 5.1
Operating System:
Windows 10
Minimum Hardware and Software
Requirements:
Operating System:
x86 64-bit CPU (Intel / AMD architecture)
4 GB RAM.
5 GB free disk space.
Open Source Software being used:
1. Python 3.8.2
a. Pandas
b. Matplotlib

Pandas:

Pandas is a high-level data manipulation tool developed


by Wes McKinney. It is built on the Numpy package and
its key data structure is called the DataFrame.
DataFrames allow you to store and manipulate tabular
data in rows of observations and columns of variables.
Matplotlib:

The matplotlib Python library, developed by John Hunter


and many other contributors, is used to create
high-quality graphs, charts, and figures. The library is
extensive and capable of changing very minute details of
a figure.
Source Code:
import numpy as np # numerical computing

import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

import matplotlib.pyplot as plt #visualization

import seaborn as sns #modern visualization

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('Total Matches are::::',df['id'].max())

print()

print('---------------------------------------------------------------------------')

print('---------------------------------------------------------------------------')
print('How many seasons data we’ve got in the dataset?')

print(df['season'].unique())

print()

print('---------------------------------------------------------------------------')

print('---------------------------------------------------------------------------')

print('Which Team had won by maximum runs?')

print(df.iloc[df['win_by_runs'].idxmax()])

print()

print('---------------------------------------------------------------------------')

print('---------------------------------------------------------------------------')

print('Which Team had won by maximum wickets?')

print(df.iloc[df['win_by_wickets'].idxmax()]['winner'])

print()

print('---------------------------------------------------------------------------')

print('---------------------------------------------------------------------------')

print('Which Team had won by (closest margin) minimum runs?')

print(df.iloc[df[df['win_by_runs'].ge(1)].win_by_runs.idxmin()]['winner'])

print()
print('---------------------------------------------------------------------------')

print('---------------------------------------------------------------------------')

print('Which Team had won by minimum wickets?')

print(df.iloc[df[df['win_by_wickets'].ge(1)].win_by_wickets.idxmin()])

print()

print('---------------------------------------------------------------------------')

print('---------------------------------------------------------------------------')

print('Which season had most number of matches?')

sns.countplot(x='season', data=df)

plt.show()

print()

print('---------------------------------------------------------------------------')

print('---------------------------------------------------------------------------')

print('The Most Successful IPL Team is:::')

data = df.winner.value_counts()

sns.barplot(y = data.index, x = data, orient='h')

print()
print('---------------------------------------------------------------------------')

print('---------------------------------------------------------------------------')

print('The Players who got maximum times Man of the Match are:::')

top_players = df.player_of_match.value_counts()[:10]

#sns.barplot(x="day", y="total_bill", data=tips)

fig, ax = plt.subplots()

ax.set_ylim([0,20])

ax.set_ylabel("Count")

ax.set_title("Top player of the match Winners")

#top_players.plot.bar()

sns.barplot(x = top_players.index, y = top_players, orient='v'); #palette="Blues");

plt.show()
OUTPUT:
---------------------------------------------------------------------------

---------------------------------------------------------------------------

<class 'pandas.core.frame.DataFrame'>

RangeIndex: 670 entries, 0 to 669

Data columns (total 18 columns):

# Column Non-Null Count Dtype

--- ------ -------------- -----

0 id 670 non-null int64

1 season 670 non-null int64

2 city 670 non-null object

3 date 670 non-null object

4 team1 670 non-null object

5 team2 670 non-null object

6 toss_winner 670 non-null object

7 toss_decision 670 non-null object

8 result 636 non-null object

9 dl_applied 636 non-null float64

10 winner 670 non-null object

11 win_by_runs 636 non-null float64

12 win_by_wickets 636 non-null float64

13 player_of_match 633 non-null object

14 venue 636 non-null object

15 umpire1 635 non-null object

16 umpire2 635 non-null object

17 umpire3 0 non-null float64

dtypes: float64(4), int64(2), object(12)


memory usage: 62.9+ KB

None

---------------------------------------------------------------------------

---------------------------------------------------------------------------

Total Matches are:::: 670

---------------------------------------------------------------------------

---------------------------------------------------------------------------

How many seasons data we’ve got in the dataset?

[2017 2008 2009 2010 2011 2012 2013 2014 2015 2016 2018]

---------------------------------------------------------------------------

---------------------------------------------------------------------------

Which Team had won by maximum runs?

id 44

season 2017

city Delhi

date 5/6/2017

team1 Mumbai Indians

team2 Delhi Daredevils

toss_winner Delhi Daredevils

toss_decision field

result normal

dl_applied 0

winner Mumbai Indians

win_by_runs 146

win_by_wickets 0

player_of_match LMP Simmons


venue Feroz Shah Kotla

umpire1 Nitin Menon

umpire2 CK Nandan

umpire3 NaN

Name: 43, dtype: object

---------------------------------------------------------------------------

---------------------------------------------------------------------------

Which Team had won by maximum wickets?

Kolkata Knight Riders

---------------------------------------------------------------------------

---------------------------------------------------------------------------

Which Team had won by (closest margin) minimum runs?

Mumbai Indians

---------------------------------------------------------------------------

---------------------------------------------------------------------------

Which Team had won by minimum wickets?

id 560

season 2015

city Kolkata

date 5/9/2015

team1 Kings XI Punjab

team2 Kolkata Knight Riders

toss_winner Kings XI Punjab

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

venue Eden Gardens

umpire1 AK Chaudhary

umpire2 HDPK Dharmasena

umpire3 NaN

Name: 559, dtype: object

---------------------------------------------------------------------------

---------------------------------------------------------------------------

Which season had most number of matches?

---------------------------------------------------------------------------

---------------------------------------------------------------------------
The Most Successful IPL Team is:::

---------------------------------------------------------------------------

---------------------------------------------------------------------------

The Players who got maximum times Man of the Match are:::
Bibliography

● Youtube Channel(Computer Concepts A.k


Pandey)

● Informatics Practices Class 12 by Sumita Arora.

● Informatics Practices Class 12 by Preeti Arora.

● https://stackoverflow.com/ (for error resolving)

● Google Images

You might also like