Where I know for sure Sept 10th and Sept 11th the Mets/Yankees were playing at Citi Field (NYY is Away), when in the query I've asked for NYY data, not Mets.
I'm opening this issue for anyone to pickup if they want to (I might get to it if I have some time).
It seems that
Home
is returning the opposite value for what it should be.E.g.
Where I know for sure Sept 10th and Sept 11th the Mets/Yankees were playing at Citi Field (NYY is Away), when in the query I've asked for
NYY
data, not Mets.I'm opening this issue for anyone to pickup if they want to (I might get to it if I have some time).
I would imagine the offending line is here: https://github.com/jldbc/pybaseball/blob/master/pybaseball/team_game_logs.py#L32
data["Home"] = ~data["Home"].isnull() # '@' if away, empty if home
An incorrect assumption about incoming data is likely being made.