Spaces:
Sleeping
Sleeping
Jon Solow
commited on
Commit
·
866fde5
1
Parent(s):
13fb024
Join in play by play data with pbp participation
Browse files
src/queries/nflverse/github_data.py
CHANGED
@@ -39,7 +39,16 @@ def get_ftn_charting(season_int: int) -> pd.DataFrame:
|
|
39 |
|
40 |
|
41 |
def get_pbp_participation(season_int: int) -> pd.DataFrame:
|
42 |
-
df = duckdb.sql(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
return df
|
44 |
|
45 |
|
|
|
39 |
|
40 |
|
41 |
def get_pbp_participation(season_int: int) -> pd.DataFrame:
|
42 |
+
df = duckdb.sql(
|
43 |
+
f"""
|
44 |
+
SELECT
|
45 |
+
a.*
|
46 |
+
, b.week
|
47 |
+
from pbp_participation_pbp_participation_{season_int} a
|
48 |
+
left join pbp_play_by_play_{season_int} b
|
49 |
+
on a.play_id = b.play_id
|
50 |
+
"""
|
51 |
+
).df()
|
52 |
return df
|
53 |
|
54 |
|