0% found this document useful (0 votes)
48 views22 pages

Project Report Cricket20 20 Analysis

Uploaded by

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

Project Report Cricket20 20 Analysis

Uploaded by

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

PROJECT REPORT

ON
CRICKET
20-20 ANALYSIS
FOR AISSCE 2021 EXAMINATION
[AS A PART OF THE
INFORMATICS PRACTICES COURSE
(065)]

SUBMITTED BY:-
Name: _______________
Roll no: __________
Session: ___________
1
Contents
1. Certificate

2. Acknowledgement

3. Introduction

4. Objective of Project

5. Theoretical Background

6. System Implementation

7. Python Coding

8. Output

9. Bibliography

2
CERTIFICATE

This is to certified that Project entitled CRICKET 20-

20 ANALYSIS is a bonafide work done by _________ of

class XII Session 2021-22 in partial fulfilment of

CBSE’s AISSCE Examination of 2022 and has been

carried out under my direct supervision and

guidance. This Project or a similar Project on the

topic has not been submitted by other student.

……………………… ...….……………….

Signature of student Signature of teacher

Name: Name:

ROLL: Designation:

3
ACKNOWLEDGEMENT

I, undertook, this Project work, as the part of my XII-

Informatics Practices (065). I had tried to apply my best

of knowledge and experience, gained during the study and

class work experiences.

I would like to extend my sincere thanks and gratitude to

my Principal Mrs. Shikha Gupta and my teacher Mrs.

Honey Kaur, for giving valuable time and moral support to

develop this software.

I also feel indebted to my friends for the valuable

suggestions during the project work.

_______________________

Class XII-

4
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

5
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.

During the development of this project, Python IDLE,


a powerful, open source event-driven form-based
development environment is used for modular
design and future expandability of the system.
Also, this software enables the user to retrieve and
update the information from centralized database
designed with CSV. This software does not require
much training time of the user due to limited
functionality and simplicity.

6
THEORETICAL BACKGROUND

1.Python: Python is easy to learn and use


and more expressive interacted
and cross-platform language which
has a large and broad library
such as Pandas, matplotlib,
logging, time, sys and much more
that gives a programmer a huge
resource to take advantage of
this language.
Features:
➔Easy to learn and use
➔Free and open source
➔Large standard library
➔More expressive
2.Pandas: Pandas is a software library
Written for the Python programming
language for data manipulation and
7
analysis. In particular, it offers
data structures and operations for
manipulating numerical tables and
time series.
Features:
➔Handling of data
➔Alignment and indexing
➔Handling missing data
➔Cleaning up data
3.Matplotlib: Matplotlib is a plotting
library for the Python programming
language and its numerical mathematics
extension numpy. It provides an object-oriented
API for embedding plots into the
application using general purpose.
Features:
➔Easy Visualisation.
➔Free and open source.
➔Embedded GUI.

8
➔Widely used for data analysis.

4.CSV file(Comma-separated values): A


comma- separated values file is a delimited text
file that uses a comma to separate values. Each
line of the file is a data record.
Each record consists of one or more fields,
separated by commas. The use of the comma as
a field separator is the source of the name for
this file format.

Features:
➔One line for each record.
➔Comma-separated fields.
➔Space-characters adjacent to commas
is ignored.
➔Fields with in-built commas are
separated by double-quote
characters.

9
SYSTEM
IMPLEMENTATION

The Hardware used:


While developing the Software, Dell Inspiron 15
3000 3567
15.6-inch FHD Laptop (7th Gen Core
i7-7500U/8GB/1TB/Windows 10 with Office 2016
Home and Student/2GB Graphics)

The Software used:


➔Windows Operating System (WOS)
➔Python idle
➔Pages for Documentation

10
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

11
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('------------------------------------------------------------')

12
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'))

13
OUTPUT

14
15
16
17
18
19
20
21
BIBLIOGRAPHY
 WWW.Google.com

 WWW.kaggle.com

 Informatics Practices book class12

22

You might also like