Uploaded by Nikita

presentation

advertisement
Computer programming project
EU SOCCER DATABASE
Project presentation
by Nikita Fyodorov
Matricola: 307141
Content of the presentation
1
Task 1
2
Task 2
3
Task 3
Task 1
Create 2 dict. 1st for average
scores and 2nd for names
Read from Player.csv
Start a loop, to create a
mapping of goalkeepers IDs
and names.
Task 1
Read from PlayerAttributes.csv
Start a loop to calculate
average stats for each
goalkeeper
Exeption handling for lines
below
Task 1
Get maximum average
values over time
Sort players by their
scores
Add top 10 best players
to a new list
Shape data into required
format
Dump data into pickle file
Task 2
Create function to
calculate player’s age
Read from Player.csv file
Go through each player,
calculate it’s age and add
the result into a list
Task 2
Sort players by age and take 10 oldest players
Create a new list and add oldest players
Sort new list by age
Dump the result into a pickle file :)
Task 3
Create a function to load
midfielders from
Player.csv
Create a list with
midfielders positions in
the file
Go through each row
and gather midfielders
into a dictionary
Task 3
Create a function to find
to scorers
Read from Match.csv
Get goal data from each
row
Transform data to list of
dictionaries
Go through each goal
and check if it’s suitable
Check if player is a
midfielder and if it is,
update it’s goal data
Task 3
Exeption handling for
lines below
Get max amount of goals
Compare other players’
goals
Add every player with
maximum amount of
goals
Dump the result into a
pickle file
Download