You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
team_ids method not returning any data for certain years #486
the team_ids method is returning an empty pandas dataframe, the .info() call on the data frame shows that it has the proper columns and datatypes but there is no data. I tested it with the years 2023, 2024, 2025 and none of them worked but every other year I tested did.
Activity
longoodr commentedon Sep 7, 2025
+1, the CSV (sideloaded in the package) has data only up to 2021. Why is this not generated from a network call and then cached?
EDIT: Assuming this is built from Retrosheet it seems to mirror the data here:
https://www.retrosheet.org/TeamIDs.htm
Interestingly, the Retrosheet ground truth also appears to stop at 2021.
The corresponding nicknames file at https://www.retrosheet.org/Nickname.htm has start dates and end dates for team names and have blank end dates for some teams- presumably those still using that name. Based on how none of the rows here have an end date in 2021, a workaround seems to be just to query for 2021 and assume it is the same for all following years.
Fix team_ids returning empty data for seasons after 2021 (jldbc#486)
Fix team_ids returning empty data for seasons after 2021 (jldbc#486)
test: add regression test for team_ids on seasons after bundled data (j…
Fix team_ids returning empty data for seasons after 2021 (jldbc#486)
test: add regression test for team_ids on seasons after bundled data (j…
Fix team_ids returning empty data for seasons after 2021 (jldbc#486)
test: add regression test for team_ids on seasons after bundled data (j…