pybaseball icon indicating copy to clipboard operation
pybaseball copied to clipboard

Missing cLI data interferes with streak calculation

Open SushiInYourFace opened this issue 8 months ago • 0 comments

For some reason, the May 21st Baltimore Orioles game (https://www.baseball-reference.com/teams/BAL/2024-schedule-scores.shtml) just... doesn't have a cLI, and although this was the only occurrence of this happening that I've found, it stands to reason this may be the case with other games as well. Although this is certainly a bbref bug and not a pybaseball one, it does mean that the data retrieved with pybaseball.schedule_and_record(2024, "BAL") is now faulty, as the cLI column for this game is populated with "--" and the streak column is left blank.

EDIT: After looking slightly more into it, I think the cause may have something to do with the fact that this game was suspended and completed the next day. Although the rest of the data appears to be complete, perhaps bbref just doesn't assign cLIs to games that are completed over the course of two days.

Edit 2: The corresponding game the St. Louis Cardinals played on that day against the Orioles also is missing a cLI, as would be expected

SushiInYourFace avatar Jun 16 '24 04:06 SushiInYourFace