Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Top players by place of birth #466

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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