-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathjunior_tech_test.py
59 lines (50 loc) · 1.37 KB
/
junior_tech_test.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
def read_csv_file(file_path):
"""
Read a CSV file and return its content as a list of dictionaries.
"""
return
def get_unique_teams(data):
"""
Return a set of unique team names from the provided data.
"""
return
def get_most_common_event_type(data):
"""
Return the most common event type name from the provided data.
"""
return
def filter_by_team(data, team_name):
"""
Filter the data by the provided team name and return the filtered data.
"""
return
def count_event_type_by_team(data, team_name, event_type_name):
"""
Count the number of events of a specific type for a given team.
"""
return
def average_pass_length_by_team(data, team_name):
"""
Calculate the average pass length for the provided team to 1 decimal place
"""
return
def filter_players_by_position(data, position_name):
"""
Return a list of player names who play at the provided position.
"""
return
def count_successful_passes(data):
"""
Count the number of successful passes (not considering pass outcome).
"""
return
def filter_by_period(data, period):
"""
Return a list of events that occurred in the provided period (e.g., 1 or 2).
"""
return
def count_shots_by_player(data, player_name):
"""
Count the number of shots taken by the provided player.
"""
return