Skip to content

Issue: schedule_and_record Fails for Valid Team/Year Combinations #470

@elliot-wolf

Description

@elliot-wolf

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions