Skip to main content
Version: 0.1.5

PWHL — additional Python functions — sportsdataverse-data releases

load_pwhl_games​

load_pwhl_games(return_as_pandas: 'bool' = False)

Load the PWHL games-in-data-repo manifest (no seasons argument).

Mirrors fastRhockey (R) load_pwhl_games() which reads a manifest of every PWHL game that has processed data in the data repository.

Tries the sportsdataverse-data release asset first; falls back to the raw fastRhockey-data GitHub path.

Parameters

ParameterTypeDefaultDescription
return_as_pandasboolFalsereturn a pandas DataFrame instead of polars.

Returns

A polars (or pandas) DataFrame of all games in the data repository.

col_nametypedescription
game_idcharacterUnique game identifier.
seasonintegerSeason year (echoed from arg).
game_datecharacterGame date.
game_statuscharacterGame status text.
home_teamcharacterHome team name.
home_team_idcharacterHome team identifier.
away_teamcharacterAway team name.
away_team_idcharacterAway team identifier.
home_scorecharacterHome team final score.
away_scorecharacterAway team final score.
winnercharacterWhether this competitor won the game.
venuecharacterVenue where the game was played.
venue_urlcharacterURL for the venue.
game_typecharacterGame type the row belongs to.
game_jsonlogicalWhether processed game JSON is available.
game_json_urlcharacterURL to the processed game JSON.
PBPlogicalWhether play-by-play data is available.
player_boxlogicalWhether player box score data is available.
skater_boxlogicalWhether skater box data is available.
goalie_boxlogicalWhether goalie box data is available.
team_boxlogicalWhether team box score data is available.
game_infologicalWhether game info data is available.
game_rosterslogicalWhether game rosters data is available.
scoring_summarylogicalWhether scoring summary data is available.
penalty_summarylogicalWhether penalty summary data is available.
three_starslogicalWhether three stars data is available.
officialslogicalWhether officials data is available.
shots_by_periodlogicalWhether shots-by-period data is available.
shootoutlogicalWhether shootout data is available.

Example

load_pwhl_games()

load_pwhl_goalie_box​

load_pwhl_goalie_box(seasons, return_as_pandas: 'bool' = False)

Alias of load_pwhl_goalie_boxscores() for naming parity with fastRhockey (R).

Parameters

ParameterTypeDefaultDescription
seasonsA season or list of seasons, as END years (2026 = the 2025-26 season).
return_as_pandasboolFalseReturn a pandas DataFrame instead of polars.

Returns

Exactly what load_pwhl_goalie_boxscores returns -- one row per goalie per game, the requested seasons stacked; see its Returns table for the columns. A season with no published asset is skipped with a warning. A pandas DataFrame when return_as_pandas is True.

load_pwhl_player_box​

load_pwhl_player_box(seasons, return_as_pandas: 'bool' = False)

Alias of load_pwhl_player_boxscores() for naming parity with fastRhockey (R).

Parameters

ParameterTypeDefaultDescription
seasonsA season or list of seasons, as END years (2026 = the 2025-26 season).
return_as_pandasboolFalseReturn a pandas DataFrame instead of polars.

Returns

Exactly what load_pwhl_player_boxscores returns -- one row per player per game, the requested seasons stacked; see its Returns table for the columns. A season with no published asset is skipped with a warning. A pandas DataFrame when return_as_pandas is True.

load_pwhl_schedule​

load_pwhl_schedule(seasons, return_as_pandas: 'bool' = False)

Alias of load_pwhl_schedules() for naming parity with fastRhockey (R).

Parameters

ParameterTypeDefaultDescription
seasonsA season or list of seasons, as END years (2026 = the 2025-26 season).
return_as_pandasboolFalseReturn a pandas DataFrame instead of polars.

Returns

Exactly what load_pwhl_schedules returns -- one row per game, the requested seasons stacked; see its Returns table for the columns. A season with no published asset is skipped with a warning. A pandas DataFrame when return_as_pandas is True.

load_pwhl_skater_box​

load_pwhl_skater_box(seasons, return_as_pandas: 'bool' = False)

Alias of load_pwhl_skater_boxscores() for naming parity with fastRhockey (R).

Parameters

ParameterTypeDefaultDescription
seasonsA season or list of seasons, as END years (2026 = the 2025-26 season).
return_as_pandasboolFalseReturn a pandas DataFrame instead of polars.

Returns

Exactly what load_pwhl_skater_boxscores returns -- one row per skater per game, the requested seasons stacked; see its Returns table for the columns. A season with no published asset is skipped with a warning. A pandas DataFrame when return_as_pandas is True.

load_pwhl_team_box​

load_pwhl_team_box(seasons, return_as_pandas: 'bool' = False)

Alias of load_pwhl_team_boxscores() for naming parity with fastRhockey (R).

Parameters

ParameterTypeDefaultDescription
seasonsA season or list of seasons, as END years (2026 = the 2025-26 season).
return_as_pandasboolFalseReturn a pandas DataFrame instead of polars.

Returns

Exactly what load_pwhl_team_boxscores returns -- one row per team per game, the requested seasons stacked; see its Returns table for the columns. A season with no published asset is skipped with a warning. A pandas DataFrame when return_as_pandas is True.