Israeli Premier League — additional Python functions
Hand-written wrappers, loaders, and helpers in sportsdataverse.basketball.ibba that are not
generated API-endpoint wrappers (those have their own reference pages).
IDs and crosswalks
ibba_segev_game_crosswalk
ibba_segev_game_crosswalk(df: 'pl.DataFrame', *, return_as_pandas: 'bool' = False) -> 'Any'
IBBA game_id <-> Segev game_id from ibba_games (the segev_game_id column).
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
df | polars.DataFrame | an ibba_games frame (2025-26 on; earlier rows and external-team news links carry no Segev id). | |
return_as_pandas | bool | False | return a pandas DataFrame instead of polars. |
Returns
polars.DataFrame | pandas.DataFrame: game_id (IBBA) and segev_game_id (the game_id every ibba_segev_* wrapper takes), both Int64.
| col_name | type | description |
|---|---|---|
game_id | Int64 | IBBA game id (the game_id of the ibba_games frame). |
segev_game_id | Int64 | Segev game id of the same game (the game_id every ibba_segev_* wrapper takes). |
Raises
| Exception | Description |
|---|---|
ValueError | A missing column, or a key that maps to two ids. |
TypeError | df is not polars, or an id column has the wrong dtype. |
Example
from sportsdataverse.basketball.basketball_crosswalk import ibba_segev_game_crosswalk
from sportsdataverse.basketball.ibba import ibba_games
xw = ibba_segev_game_crosswalk(ibba_games(season=2026))