Project Report Cricket20 20 Analysis
Project Report Cricket20 20 Analysis
ON
CRICKET
2024-25
ANALYSIS
FOR AISSCE 2025 EXAMINATION
[AS A PART OF THE
INFORMATICS PRACTICES COURSE
(065)]
SUBMITTED BY:-
Name: __Himanshu___
1
Roll no: ____21__
Session: 2024-25
2
Contents
1. Certificate
2. Acknowledgement
3. Introduction
4. Objective of Project
5. Theoretical Background
6. System Implementation
7. Python Coding
8. Output
9. Bibliography
3
CERTIFICATE
student.
……………………… ...….……………….
ROLL: Designation:
4
ACKNOWLEDGEMENT
_______________________
Class XII- B
5
INTRODUCTION
This software project is developed to automate the
functionalities of a CRICKET 20-20
ANALYSIS.
The purpose of the software project is to develop the
Information about the various matches and to
automate the record about the teams and runs of the
various matches.
It mainly consists of a computerized database, a
collection of inter-related CSV File for a particular
subject or purpose like reference of publishers in
CSV, capable to produce different report relevant to
the user. An application program is tied with the
database for easy access and interface to the
database. Using the application program (Python),
we can store, retrieve, and manage all the
information in proper way.
This software, being simple in design and working,
does not require much of training to users, and can
be used as powerful tool for automating a CRICKET
20-20 ANALYSIS
6
OBJECTIVE OF THE PROJECT
The main objective of the project is to provide up to
date information about various matches. Cricket
matches have become a part of our teenage life, so it
important to have a bit knowledge about the teams
that play.
The proposed software system is expected to do the
following functionality-
1. To provide a user friendly and centralized
information about the cricket matches. The
proposed system should maintain all the records of
team name , runs scored , wickets, winner and
winner by wickets of particular matches.
7
THEORETICAL BACKGROUND
Features:
➔
Easy to learn and use
➔
Free and open source
➔
Large standard library
➔
More expressive
8
2.Pandas: Pandas is a software library
Features:
➔
Handling of data
➔
Alignment and indexing
➔
Handling missing data
➔
Cleaning up data
9
Features:
➔
Easy Visualisation.
➔
Free and open source.
➔
Embedded GUI.
➔
Widely used for data analysis.
Features:
➔
One line for each record.
➔
Comma-separated fields.
10
➔
Space-characters adjacent to commas
is ignored.
➔
Fields with in-built commas are
separated by double-quote
characters.
11
SYSTEM IMPLEMENTATION
➔
Windows Operating System (WOS)
➔
Python idle
➔
Pages for Documentation
12
PYTHON
CODING
Project on Cricket 20-20 Analysis
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt #visualization
plt.rcParams['figure.figsize'] = (14, 8)
df = pd.read_csv("E:\\t20.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()P.2
13
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?')
plt.bar(x='season',data=df,height=df['season'])
plt.show()
print()
print('------------------------------------------------------------')
print('------------------------------------------------------------')
print('The Most Successful IPL Team is:::')
data = df.winner.value_counts()
print(data)
print()
print('------------------------------------------------------------')
14
print('------------------------------------------------------------')
print('The Players who got maximum times Man of the Match are:::')
top_players = df.player_of_match.value_counts()[:10]
print(top_players)
print("Data Frame Analysis")
menu=''' 1. Top record of the Players
\n 2. Bottom Records of the Players
\n 3. To print particular column
\n 4. To print multiple columns
\n 5. To display complete statistics of the Matches
\n Press enter to go back '''
print(menu)
ch=int(input("Enter your choice"))
if ch==1:
n=int(input("Enter the number of records to be displayed"))
print("Top ", n," records from the dataframe")
print(df.head(n))
elif ch==2:
n=int(input("Enter the number of records to be displayed"))
print("Bottom ", n," records from the dataframe")
print(df.tail(n))
elif ch==3:
print("Name of the columns\n",df.columns)
columns\n",df.columns)
co=input("Enter the column name to be displayed")
print(df[[co]])
elif ch==4:
print("Name of the columns\n",df.columns)
co=eval(input("Enter the column names as list in square bracket"))
print(df[co])
elif ch==5:
print("The statistics of the dataframe is:", df.describe(include='all'))
15
OUTPUT
16
17
18
19
20
21
22
23
BIBLIOGRAPHY
WWW.Google.com
WWW.kaggle.com
24