Column Naming

This page compares the column names used in the tables from three sources:

We have attempted to use well-chosen names in pylahman that are both internally consistent, while not deviating from the source README or the popular R package. Accomplishing this is not entirely possible. As such, the following tables summarize the discrepancies between the three sources. An empty cell indicates the column is not present in that source. Unlisted tables or column names indicate that all three sources currently agree.

AllstarFull

Python README R
yearID YearID yearID

Batting

Python README R
2B 2B X2B
3B 3B X3B

BattingPost

Python README R
2B 2B X2B
3B 3B X3B

CollegePlaying

Python README R
playerID playerid playerID

Fielding

Python README R
POS Pos POS

FieldingOFsplit

Python README R
CS - CS
PB - PB
POS Pos POS
SB - SB
WP - WP
ZR - ZR

FieldingPost

Python README R
POS Pos POS

HomeGames

Python README R
leaguekey leaguekey league.key
parkkey parkkey park.key
spanfirst spanfirst span.first
spanlast spanlast span.last
teamkey teamkey team.key
yearkey yearkey year.key

Parks

Python README R
parkalias parkalias park.alias
parkkey parkkey park.key
parkname parkname park.name

People

Python README R
- - birthDate
- - deathDate
- ID -

Pitching

Python README R
IPOuts IPOuts IPouts

PitchingPost

Python README R
IPOuts IPOuts IPouts

Schools

Python README R
city - city
country - country
- - name_full
nameFull - -
- schoolCity -
- schoolName -
- schoolNick -
- schoolState -
state - state

Teams

Python README R
2B 2B X2B
3B 3B X3B
GHome GHome Ghome
IPOuts IPOuts IPouts

TeamsHalf

Python README R
half half Half
rank rank Rank