Skip to content

Commit 2d1adac

Browse files
authored
Create shot_map.py
1 parent 8448765 commit 2d1adac

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

Extras/05. Shot Map/shot_map.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# -*- coding: utf-8 -*-
2+
"""
3+
Created on Mon Jun 1 22:25:10 2020
4+
5+
@author: sothfulwave612
6+
7+
Modules Used(2):-
8+
1. utility_function_io -- module where i/o functions are defined.
9+
2. utility_function_viz -- module where visualization functions are defined.
10+
"""
11+
import utility_function_io as ufio
12+
import utility_function_viz as ufvz
13+
14+
## making dataframe for competitions
15+
comp_df = ufio.get_competitions()
16+
17+
## La Liga Competition
18+
comp_id = 11
19+
season_id = 23
20+
21+
## getting all the matches
22+
match_df = ufio.get_matches(comp_id, season_id)
23+
24+
## listing all the match ids
25+
match_ids = list(match_df['match_id'].unique())
26+
27+
## shot dataframe
28+
shot_df = ufio.make_shots_event(match_ids, player='Lionel Andrés Messi Cuccittini')

0 commit comments

Comments
 (0)