jldbc / jldbc/pybaseball

Missing cLI data interferes with streak calculation

Open
#431 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
1.7k
Forks
428
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.