MCPcopy
hub / github.com/probberechts/soccerdata / _as_float

Function _as_float

soccerdata/understat.py:743–747  ·  view source on GitHub ↗
(value: Any)

Source from the content-addressed store, hash-verified

741
742
743def _as_float(value: Any) -> Optional[float]:
744 try:
745 return float(value)
746 except (TypeError, ValueError):
747 return None
748
749
750def _as_int(value: Any) -> Optional[int]:

Callers 5

read_scheduleMethod · 0.85
read_team_match_statsMethod · 0.85
read_shot_eventsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected