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?