Utilities¶
- _common.SeasonCode(names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)¶
How to interpret season codes.
- SINGLE_YEAR¶
- Type:
The season code is a single year, e.g. ‘2021’.
- soccerdata.MULTI_YEAR¶
- Type:
The season code is a range of years, e.g. ‘2122’.
- _common.make_game_id()¶
Return a game id based on date, home and away team.
- Parameters:
row (Series)
- Return type:
str
- _common.standardize_colnames(cols=None)¶
Convert DataFrame column names to snake case.
- Parameters:
df (DataFrame)
cols (list[str] | None)
- Return type:
DataFrame
- _common.get_proxy()¶
Return a public proxy.
- Return type:
dict[str, str]
- _common.check_proxy()¶
Check if proxy is working.
- Parameters:
proxy (dict)
- Return type:
bool