jldbc / jldbc/pybaseball

Issue: schedule_and_record Fails for Valid Team/Year Combinations

Open
#470 9 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

The schedule_and_record function is returning a ValueError when attempting to retrieve data for valid team and year combinations. The error message suggests that the team abbreviation or season may be incorrect, but the input values are valid.

Test code:

from pybaseball import schedule_and_record

df = schedule_and_record(2023, "ATL") # Also fails with other teams/years
print(df.head())

Error:
ValueError: Data cannot be retrieved for this team/year combo. Please verify that your team abbreviation is accurate and that the team existed during the season you are searching for.

Has anyone else experienced this issue?

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.