jldbc / pybaseball

Pull current and historical baseball statistics using Python (Statcast, Baseball Reference, FanGraphs)
MIT License
1.18k stars 322 forks source link

Fangraphs Data Acquisition Functions not working #344

Closed scornfulMussel6 closed 1 year ago

scornfulMussel6 commented 1 year ago

A number of the Fangraphs Data Acquisition Functions are not working as documented.

For example:

import pandas as pd import pybaseball stat = ['HardHit%'] pybaseball.pitching_stats(2023,stat_columns=stat).sort_values(stat,ascending=False).head()

returns with:

ValueError: Invalid value of 'HARDHIT%'. Values must be a valid member of the enum: FangraphsPitchingStats

Similarly,

pybaseball.pitching_stats(2023,team='NYY')

returns

1HTTPError: Error accessing 'https://www.fangraphs.com/leaders.aspx'. Received status code 500`

scornfulMussel6 commented 1 year ago

Issue seems to be resolved, no further action required.