Professional Documents
Culture Documents
Cricket World Cup Management System
Cricket World Cup Management System
Cricket World Cup Management System
CUP MANAGEMENT
SYSTEM
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')
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():
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')
if ch==1:
line()
elif ch==2:
bar()
elif ch==3:
hbar()
if ch==4:
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()
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')
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:
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')
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) .
www.google.com
www.python.com
www.cricbuzz.com