jldbc / pybaseball

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

Fixed issue in get_player_info() #265

Closed trogers19 closed 2 years ago

trogers19 commented 2 years ago

The list fv was declared in a for loop such that the dictionary creation couldn't access it. This caused an error, "local variable 'fv' referenced before assignment" when calling get_splits() with player_info=True.