Skip to content

Conversation

@nicko4o
Copy link

@nicko4o nicko4o commented Jan 9, 2026

Summary

Fix Lahman database loading (404 error) and remove debug print statement.

Changes

  • lahman.py: Update deprecated chadwickbureau/baseballdatabank URL to working seanlahman/baseballdatabank
  • lahman.py: Add Master.csv fallback for compatibility with older database versions
  • team_results.py: Remove debug print(url) statement

Related Issues

Fixes #489 (Lahman data loading)

Testing

>>> from pybaseball import lahman
>>> lahman.people()
# Returns 19,105 rows ✅

- lahman.py: Update URL from deprecated chadwickbureau to seanlahman
- lahman.py: Add Master.csv/People.csv fallback for compatibility
- team_results.py: Remove debug print(url) statement

Fixes: jldbc#489 (Lahman loading)
Copilot AI review requested due to automatic review settings January 9, 2026 11:05
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a 404 error when loading Lahman baseball database data and removes a debug print statement.

  • Updated Lahman database repository URL from deprecated chadwickbureau/baseballdatabank to working seanlahman/baseballdatabank
  • Added backwards compatibility for older database versions that use Master.csv instead of People.csv
  • Removed debug print statement from team results module

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
pybaseball/lahman.py Updated URL to working repository and added fallback for legacy file naming
pybaseball/team_results.py Removed debug print statement

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@nicko4o nicko4o closed this Jan 10, 2026
@nicko4o nicko4o reopened this Jan 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

loading Lahman data is not working

1 participant