socceraction.data.opta.OptaLoader.teams¶
- OptaLoader.teams(game_id)¶
Return a dataframe with both teams that participated in a game.
- Parameters:
game_id (int) – The ID of the game.
- Returns:
A dataframe containing both teams. See
OptaTeamSchema
for the schema.- Return type:
pd.DataFrame