API Reference

Player Identification

Functions to lookup player identifiers or names.

get_player_names Get player names from player IDs.
get_player_ids Get player IDs from player names.

Data Loading

Functions to load tables from the Lahman database.

AllstarFull Returns the AllstarFull table as a DataFrame.
Appearances Returns the Appearances table as a DataFrame.
AwardsManagers Returns the AwardsManagers table as a DataFrame.
AwardsPlayers Returns the AwardsPlayers table as a DataFrame.
AwardsShareManagers Returns the AwardsShareManagers table as a DataFrame.
AwardsSharePlayers Returns the AwardsSharePlayers table as a DataFrame.
Batting Returns the Batting table as a DataFrame.
BattingPost Returns the BattingPost table as a DataFrame.
CollegePlaying Returns the CollegePlaying table as a DataFrame.
Fielding Returns the Fielding table as a DataFrame.
FieldingOF Returns the FieldingOF table as a DataFrame.
FieldingOFsplit Returns the FieldingOFsplit table as a DataFrame.
FieldingPost Returns the FieldingPost table as a DataFrame.
HallOfFame Returns the HallOfFame table as a DataFrame.
HomeGames Returns the HomeGames table as a DataFrame.
Managers Returns the Managers table as a DataFrame.
ManagersHalf Returns the ManagersHalf table as a DataFrame.
Parks Returns the Parks table as a DataFrame.
People Returns the People table as a DataFrame.
Pitching Returns the Pitching table as a DataFrame.
PitchingPost Returns the PitchingPost table as a DataFrame.
Salaries Returns the Salaries table as a DataFrame.
Schools Returns the Schools table as a DataFrame.
SeriesPost Returns the SeriesPost table as a DataFrame.
Teams Returns the Teams table as a DataFrame.
TeamsFranchises Returns the TeamsFranchises table as a DataFrame.
TeamsHalf Returns the TeamsHalf table as a DataFrame.