Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -96,7 +96,7 @@ def get_stats_from_boxScore_data(url: str, stat: str) -> dict:
|
|
96 |
for teams in box_scores.keys():
|
97 |
for player in box_scores[teams]:
|
98 |
if player[stat_key] is not None:
|
99 |
-
if player[stat_key].replace('.').isdigit()
|
100 |
stats[player[list(player.keys())[0]]]=pd.to_numeric(player[stat_key], errors='coerce')
|
101 |
return stats
|
102 |
except Exception as e:
|
|
|
96 |
for teams in box_scores.keys():
|
97 |
for player in box_scores[teams]:
|
98 |
if player[stat_key] is not None:
|
99 |
+
if player[stat_key].replace('.').isdigit():
|
100 |
stats[player[list(player.keys())[0]]]=pd.to_numeric(player[stat_key], errors='coerce')
|
101 |
return stats
|
102 |
except Exception as e:
|