Utilities

_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