Skip to content

Conversation

@cunanue03
Copy link

This pull request introduces functionality to display top MLB players by WAR for a given nationality or U.S. state. The changes include the addition of documentation, a new module for processing birthplace statistics, and a function to display the top players.

Documentation:

  • docs/birthplace_stats.md: Added documentation for the display_top_players_with_stats function, including arguments, available nationalities and state codes, and examples of valid queries.

Code Implementation:

  • pybaseball/birthplace_stats.py: Introduced a new module with a dictionary mapping nationalities and state codes to their respective URLs, a BirthplaceHTMLTableProcessor class for extracting tabular data, and a BaseballReferenceProcessor class to retrieve top players by WAR. Additionally, added the display_top_players_with_stats function to display and optionally save the top players by WAR for a given nationality.

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.

1 participant