jldbc / pybaseball

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

[Bug] statcast_batter must be passed an end datetime #255

Closed akern40 closed 2 years ago

akern40 commented 2 years ago

statcast_batter is designed to have optional start/end times, and the logic for handling them is in the call to sanitize_input. However, the code does not reassign the inputs after the call to sanitize_input, and the assertions end up failing.