jldbc / pybaseball

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

Issue with pitcher expected stats #217

Closed mileskee closed 3 years ago

mileskee commented 3 years ago

I typed "from pybaseball import statcast_pitcher_expected_stats" and got an error message that said "cannot import name 'statcast_pitcher_expected_stats' from 'pybaseball.' I am very new to this, so I might have messed something up.

cap099 commented 3 years ago

I typed "from pybaseball import statcast_pitcher_expected_stats" and got an error message that said "cannot import name 'statcast_pitcher_expected_stats' from 'pybaseball.' I am very new to this, so I might have messed something up.

Try from pybaseball.statcast_pitcher import statcast_pitcher_expected_stats That seems to have worked for me.

mileskee commented 3 years ago

That worked, thanks a lot.