jldbc / pybaseball

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

batting_stats_range does not have IDfg #257

Closed baileymorton989 closed 1 year ago

baileymorton989 commented 2 years ago

Is there a way to join the in-season batting results with the lahman database to get positions? I was able to do so with batting_stats, but batting_stats_range does not offer this feature.

tjburch commented 2 years ago

That's a good point, there isn't currently a clean way (you could kind of get there by a merge on name, but that's not great and would have issues with special characters or different formats). I just created #264 to cover this.