WBB Function Index
sportsdataverse.wbb package
sportsdataverse.wbb.load_wbb_pbp(seasons: List[int])
Load women’s college basketball play by play data going back to 2002
Example:
wbb_df = sportsdataverse.wbb.load_wbb_pbp(seasons=range(2002,2022))
Args:
seasons (list): Used to define different seasons. 2002 is the earliest available season.
Returns:
pd.DataFrame: Pandas dataframe containing the
play-by-plays available for the requested seasons.
Raises:
ValueError: If season is less than 2002.
sportsdataverse.wbb.load_wbb_player_boxscore(seasons: List[int])
Load women’s college basketball player boxscore data
Example:
wbb_df = sportsdataverse.wbb.load_wbb_player_boxscore(seasons=range(2002,2022))
Args:
seasons (list): Used to define different seasons. 2002 is the earliest available season.
Returns:
pd.DataFrame: Pandas dataframe containing the
player boxscores available for the requested seasons.
Raises:
ValueError: If season is less than 2002.
sportsdataverse.wbb.load_wbb_schedule(seasons: List[int])
Load women’s college basketball schedule data
Example:
wbb_df = sportsdataverse.wbb.load_wbb_schedule(seasons=range(2002,2022))
Args:
seasons (list): Used to define different seasons. 2002 is the earliest available season.
Returns:
pd.DataFrame: Pandas dataframe containing the
schedule for the requested seasons.
Raises:
ValueError: If season is less than 2002.
sportsdataverse.wbb.load_wbb_team_boxscore(seasons: List[int])
Load women’s college basketball team boxscore data
Example:
wbb_df = sportsdataverse.wbb.load_wbb_team_boxscore(seasons=range(2002,2022))
Args:
seasons (list): Used to define different seasons. 2002 is the earliest available season.
Returns:
pd.DataFrame: Pandas dataframe containing the
team boxscores available for the requested seasons.
Raises:
ValueError: If season is less than 2002.
sportsdataverse.wbb.wbb_pbp module
sportsdataverse.wbb.espn_wbb_pbp(game_id: int)
espn_wbb_pbp() - Pull the game by id. Data from API endpoints - womens-college-basketball/playbyplay, womens-college-basketball/summary
Args:
game_id (int): Unique game_id, can be obtained from wbb_schedule().
Returns:
Dict: Dictionary of game data with keys - “gameId”, “plays”, “winprobability”,
“boxscore”, “header”, “broadcasts”, “videos”, “playByPlaySource”,
“standings”, “leaders”, “timeouts”, “pickcenter”,
“againstTheSpread”, “odds”, “predictor”,
“espnWP”, “gameInfo”, “season”
Example:
wbb_df = sportsdataverse.wbb.espn_wbb_pbp(game_id=401266534)
sportsdataverse.wbb.espn_wbb_calendar(season=None)
espn_wbb_calendar - look up the women’s college basketball calendar for a given season
Args:
season (int): Used to define different seasons. 2002 is the earliest available season.
Returns:
pd.DataFrame: Pandas dataframe containing
calendar dates for the requested season.
Raises:
ValueError: If season is less than 2002.
sportsdataverse.wbb.espn_wbb_schedule(dates=None, groups=None, season_type=None)
espn_wbb_schedule - look up the women’s college basketball schedule for a given season
Args:
dates (int): Used to define different seasons. 2002 is the earliest available season.
groups (int): Used to define different divisions. 50 is Division I, 51 is Division II, 52 is Division III.
season_type (int): 2 for regular season, 3 for post-season, 4 for off-season.
Returns:
pd.DataFrame: Pandas dataframe containing schedule dates for the requested season.