Skip to content

Clean up of errors when query parameters change in the fg_pitcher_leaders function#398

Open
tmr621 wants to merge 2 commits into
BillPetti:masterfrom
tmr621:master
Open

Clean up of errors when query parameters change in the fg_pitcher_leaders function#398
tmr621 wants to merge 2 commits into
BillPetti:masterfrom
tmr621:master

Conversation

@tmr621
Copy link
Copy Markdown

@tmr621 tmr621 commented Apr 3, 2026

  • Swapped season parameters to match the Fangraphs API string. Was reversed previously, which caused errors for multiseason queries.
  • Added proper capitalization of Season variable.
  • Added logic in column renaming as to not error when a column isn't present. This occurred when querying as starting pitchers only OR when querying as reliever only (stats = "str" or stats = "rel")

tmr621 added 2 commits April 3, 2026 14:32
- swapped season parameters to match the Fangraphs API string. Was reversed previously, which caused errors for multiseason queries. 
- Added proper capitalization of Season variable.
- Added logic in column renaming as to not error when a column isn't present. This occurred when querying as starting pitchers only OR when querying as reliever only (stats = "str" or stats = "rel"
Clean up of errors when query parameters change in the fg_pitcher_leaders function
@tmr621 tmr621 closed this Apr 3, 2026
@tmr621 tmr621 reopened this Apr 3, 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.

1 participant