Cricket World Cup Management System

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 53

CRICKET WORLD

CUP MANAGEMENT
SYSTEM

NAME:-KRISH SANJAYBHAI PATEL


Std:- 12 - C
Roll no:- 09
Session:- 2023 - 24
Acknowledgement
I would like to express my special thanks of gratitude to
our principal Ms. Shubhra Srivastava for her
encouragement and for all the facilities that she provided
for this project work.

I extend my hearty thanks to Saleha Mam , Computer


teacher, who guided me to the successful completion of
this project. I take this opportunity to express my deep
sense of gratitude for his guidance, constant
encouragement, constructive comments, sympathetic
attitude and immense motivation, which has sustained
my efforts at all stages of this project work. I would like
to thank my parents and friends who helped me in
finalizing this project.

Index
sr.no topic Page
1. Introduction 1
2. CSV FILES 2
3. SOURCE 3
CODE WITH
OUTPUT
4. BIBLOGRAPH 24
Y

INTRODUCTION
My DBMS project
is based on Cricket
database
management
system. It provides
various
information about
the various teams
participating
in the World Cup,
in which all the
major countries
participate. It also
provides us with
information
about the various
players
participating in the
tournament. The
database contains
details of
players, coaches,
matches, wicket
keepers and
umpires among
others. All the
useful information
about the enti
My DBMS project
is based on Cricket
database
management
system. It provides
various
information about
the various teams
participating
in the World Cup,
in which all the
major countries
participate. It also
provides us with
information
about the various
players
participating in the
tournament. The
database contains
details of
players, coaches,
matches, wicket
keepers and
umpires among
others. All the
useful information
about the enti
My DBMS project
is based on Cricket
database
management
system. It provides
various
information about
the various teams
participating
in the World Cup,
in which all the
major countries
participate. It also
provides us with
information
about the various
players
participating in the
tournament. The
database contains
details of
players, coaches,
matches, wicket
keepers and
umpires among
others. All the
useful information
about the enti
My DBMS project
is based on Cricket
database
management
system. It provides
various
information about
the various teams
participating
in the World Cup,
in which all the
major countries
participate. It also
provides us with
information
about the various
players
participating in the
tournament. The
database contains
details of
players, coaches,
matches, wicket
keepers and
umpires among
others. All the
useful information
about the enti
My DBMS project
is based on Cricket
database
management
system. It provides
various
information about
the various teams
participating
in the World Cup,
in which all the
major countries
participate. It also
provides us with
information
about the various
players
participating in the
tournament. The
database contains
details of
players, coaches,
matches, wicket
keepers and
umpires among
others. All the
useful information
about the enti
My DBMS project
is based on Cricket
database
management
system. It provides
various
information about
the various teams
participating
in the World Cup,
in which all the
major countries
participate. It also
provides us with
information
about the various
players
participating in the
tournament. The
database contains
details of
players, coaches,
matches, wicket
keepers and
umpires among
others. All the
useful information
about the enti
My DBMS project
is based on Cricket
database
management
system. It provides
various
information about
the various teams
participating
in the World Cup,
in which all the
major countries
participate. It also
provides us with
information
about the various
players
participating in the
tournament. The
database contains
details of
players, coaches,
matches, wicket
keepers and
umpires among
others. All the
useful information
about the enti
My DBMS project
is based on Cricket
database
management
system. It provides
various
information about
the various teams
participating
in the World Cup,
in which all the
major countries
participate. It also
provides us with
information
about the various
players
participating in the
tournament. The
database contains
details of
players, coaches,
matches, wicket
keepers and
umpires among
others. All the
useful information
about the enti
My project is based crick world cup
management system. It provides various
information about various teams
participating in the world cup, in which all
the major countries participate. It also
provides as with information about the
various players participating in tournament.
It contain details of Teams , match wins ,
match loss , total points and among others.
All the useful information about the entire
World Cup can be found here.
CSV FILES
SOURCE CODE WITH
OUTPUT

%matplotlib inline
import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
import sys,os

def menuset():

ch = ""
print()
print('^'*30 , 'WORDCUP MANAGEMENT SYSTEM'
, '^'*30)
print('press 1 Read_csv\n')
print('press 2 Data visualization\n')
print('press 3 Analysis\n')
print('press 4 Manipulation\n')
print('press 5 Exit\n')

ch = int(input('Enter your choice:'))

if ch==1:
read_csv()

elif ch==2:
visuals()

elif ch==3:
analysis()

elif ch==4:
manipulation()

elif ch==5:
print('Thank you')
exit()

#READ_CSV......................................................

def read_csv():

print('^'*40, 'Read_csv Menu','^'*40)


a = pd.read_csv('point_table.csv')
print(a)
menuset()

OUTPUT:-
#DATA VISUALIZATION............................................

def visuals():

ch=""

print()
print('^'*35,'Data visulization Menu' , '^'*35)
print('press 1 Line Chart\n')
print('press 2 Bar chart\n')
print('press 3 Barh chart\n')
print('press 4 Exit\n')

ch = int(input('enter your choice:'))

if ch==1:
line()

elif ch==2:
bar()
elif ch==3:
hbar()

if ch==4:

a = input('press m for main menu\npress e for exit\n')

if a=='m':
menuset()

if a=='e':
print('Thanks!!!')
exit()

def line():

line = pd.read_csv('point_table.csv')
df = pd.DataFrame(line)
plt.xlabel('Teams')
plt.ylabel('match_wins')
plt.title('team v/s match_wins')
plt.grid()
plt.plot(df.Teams , df.match_wins)
plt.show()
menuset()

OUTPUT:-

def bar():
bar=pd.read_csv('point_table.csv')
x = df.Teams
y = bar.net_run_rate
plt.bar(x,y,color = 'orange')
plt.xlabel('Teams')
plt.ylabel('net run rate')
plt.title('team v/s run_rate')
plt.show()
menuset()

OUTPUT:-
def hbar():

bar= pd.read_csv('point_table.csv')
df = pd.DataFrame(bar)
x = df.Teams
y = bar.total_pts
plt.barh(x,y,color = 'red')
plt.xlabel('Teams')
plt.ylabel('total_pts')
plt.title('team v/s total pts')
plt.show()
menuset()

OUTPUT:-
#DATA ANALYSIS...................................................

def analysis():

ch=''

print()

print('^'*40 , 'Data Analysis Menu' , '^'*40)


print('press 1 Top Records\n')
print('press 2 Bottom Records\n')
print('press 3 To Print Particular Column\n')
print('press 4 To Print Multiple Columns\n')
print('press 5 To display te complete statistic(Aggregate
Functions)\n')
print('press 6 Exit\n')

ch = int(input('enter your choice:'))

if ch==1:
top()

elif ch==2:
bottom()

elif ch==3:
single_column()

elif ch==4:
multiple_column()

elif ch==5:
aggregate()

elif ch==6:
a = input('press m for main menu\npress e for Exit\
n')

if a=='m':
menuset()

if a=='e':
print('THANK YOU !!!')
exit()

def top():

top = pd.read_csv('point_table.csv')
print(top.head(4))
menuset()

OUTPUT:-

def bottom():

bottom = pd.read_csv('point_table.csv')
print(bottom.tail(3))
menuset()

OUTPUT:-

def single_column():

single = pd.read_csv('point_table.csv')
df = pd.DataFrame(single)
print(df.columns)
c = input('enter column name:')
print(df[c])
menuset()
OUTPUT:-

def multiple_column():

multiple = pd.read_csv('point_table.csv')
df = pd.DataFrame(multiple)
print(df.columns)
c = eval(input('enter columns names[]:'))
print(df[c])
menuset()
OUTPUT:-

def aggregate():

aggregate = pd.read_csv('point_table.csv')
df = pd.DataFrame(aggregate)
print('press 1 Maximum')
print('press 2 Minimum')
print('press 3 Mean')
print('press 4 Count')

d = int(input('enter your choice:'))


if d==1:

print(df.columns)
e = input('enter column name for Max value:')
print('Maximum value of' , e , '=' , df[[e]].max())
menuset()

elif d==2:

print(df.columns)
e = input('enter column name for min value:')
print('minimum value of' ,e,'=',df[[e]].min())
menuset()

elif d==3:

print(df.columns)
e = input('enter column name for mean value:')
print('mean value of',e,'='.df[[e]].mean())
menuset()
elif d==4:

print('total number of records=',df.count(axis=0))


menuset()

OUTPUT:-

def manipulation():

ch=''

print()
print('^'*35 , 'Data Manipulation Menu' , '^'*35)
print('press 1 Insert a Row\n')
print('press 2 Delete a Row\n')
print('press 3 Exit\n')

ch = int(input('enter your choice:'))

if ch==1:

add = pd.read_csv('point_table.csv')
df = pd.DataFrame(add)
print(df.columns)
add1 = eval(input('enter value for columns:[]'))
df.loc[len(df.index)] = add1
print(df)
menuset()

OUTPUT:-
elif ch==2:

drop = pd.read_csv('point_table.csv')
df = pd.DataFrame(drop)
print(df)
drop1 = int(input('enter row index to delete:'))
df = df.drop(df.index[drop1])
print(df)
menuset()

OUTPUT:-
elif ch==3:
print('THANK YOU !!')
exit()
menuset()

OUTPUT:-

BIBLOGRAPHY
 My Computer teacher
Comprehensive Practical IP (Lab
Manual) .

 DIFFERENT INERNET SITES:-

www.google.com
www.python.com
www.cricbuzz.com

You might also like