Skip to main content

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_idStringUnique game identifier.
seasonInt64Season year (echoed from arg).
game_dateStringGame date.
game_statusStringGame status text.
home_teamStringHome team name.
home_team_idStringHome team identifier.
away_teamStringAway team name.
away_team_idStringAway team identifier.
home_scoreStringHome team final score.
away_scoreStringAway team final score.
winnerStringWhether this competitor won the game.
venueStringVenue where the game was played.
venue_urlStringURL for the venue.
game_typeStringGame type the row belongs to.
game_jsonBooleanWhether processed game JSON is available.
game_json_urlStringURL to the processed game JSON.
PBPBooleanWhether play-by-play data is available.
player_boxBooleanWhether player box score data is available.
skater_boxBooleanWhether skater box data is available.
goalie_boxBooleanWhether goalie box data is available.
team_boxBooleanWhether team box score data is available.
game_infoBooleanWhether game info data is available.
game_rostersBooleanWhether game rosters data is available.
scoring_summaryBooleanWhether scoring summary data is available.
penalty_summaryBooleanWhether penalty summary data is available.
three_starsBooleanWhether three stars data is available.
officialsBooleanWhether officials data is available.
shots_by_periodBooleanWhether shots-by-period data is available.
shootoutBooleanWhether 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.