jldbc / pybaseball

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

playerid_lookup throws and error #326

Closed jlmayfield closed 1 year ago

jlmayfield commented 1 year ago

When running the example from the documentation I get the following error:

ValueError: Usecols do not match columns, columns expected but not found: 
['mlb_played_first', 'mlb_played_last', 'name_last', 'key_mlbam', 'key_retro', 
'key_fangraphs', 'key_bbref', 'name_first']

This was on a setup with a freshly installed pybaseball, both from pip and from github today, 2/23/2023.

tjburch commented 1 year ago

this shouldn't happen after #308 and #309. They're not in pypi yet so it won't be in via pip but should work from a github install.

@schorrm can we version bump so this gets resolved?

schorrm commented 1 year ago

@tjburch of course

tjburch commented 1 year ago

@jlmayfield, try from pip now.

tjburch commented 1 year ago

Closing Friday 3/3 unless more problems arise

jlmayfield commented 1 year ago

@tjburch reinstalled from pip and the problem is gone. Thanks!