jbisal commited on
Commit
63f62a6
·
verified ·
1 Parent(s): 8f2cdfb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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)}"}