pybaseball icon indicating copy to clipboard operation
pybaseball copied to clipboard

Splits

Open Milkman9691 opened this issue 2 years ago • 1 comments

Can we sub in start_dt & end_dt for year here?

get_splits(playerid, year=None, player_info=False, pitching_splits=False)

Milkman9691 avatar Aug 14 '23 16:08 Milkman9691

I don't think BR gives us the options to select certain range of years data. It can only get data for one specific year or player's career splits data by set year=None (which will set argument year=Career by default).

Here is an example page for this method: link You can click the splits navigation button and see that BR only provide each Year plus Career option.

Currently, we can only get year's data separately and try to combine them by ourselves unless we find other argument we can use.

Hope this help you answer your question.

ref: https://github.com/jldbc/pybaseball/blob/master/docs/split_stats.md

ss77995ss avatar Aug 15 '23 12:08 ss77995ss