Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -104,7 +104,7 @@ def get_stats_from_boxScore_data(url: str, stat: str) -> dict:
|
|
104 |
stat_key = ('Basic Box Score Stats', stat)
|
105 |
for teams in box_scores.keys():
|
106 |
for player in box_scores[teams]:
|
107 |
-
if stat_key in player
|
108 |
if player[stat_key] is not None:
|
109 |
if player[stat_key].replace('.', '').isdigit():
|
110 |
stats[player[list(player.keys())[0]]] = pd.to_numeric(player[stat_key], errors='coerce')
|
|
|
104 |
stat_key = ('Basic Box Score Stats', stat)
|
105 |
for teams in box_scores.keys():
|
106 |
for player in box_scores[teams]:
|
107 |
+
if stat_key in player:
|
108 |
if player[stat_key] is not None:
|
109 |
if player[stat_key].replace('.', '').isdigit():
|
110 |
stats[player[list(player.keys())[0]]] = pd.to_numeric(player[stat_key], errors='coerce')
|