Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -98,6 +98,7 @@ def get_stats_from_boxScore_data(url: str, stat: str) -> dict:
|
|
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:
|
103 |
return {"Error": f"Error fetching boxScore data for given statistic: {str(e)}"}
|
|
|
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 |
+
print(stats[player[list(player.keys())[0]]])
|
102 |
return stats
|
103 |
except Exception as e:
|
104 |
return {"Error": f"Error fetching boxScore data for given statistic: {str(e)}"}
|