pybaseball icon indicating copy to clipboard operation
pybaseball copied to clipboard

Get spring training statcast data

Open ss77995ss opened this issue 1 year ago • 4 comments

Description

  • Spring training usually start from near 2/20 but the default range of start date is 3/15
  • Change the default from 3/15 to 2/15

ss77995ss avatar Mar 06 '24 01:03 ss77995ss

Hi @tjburch , @schorrm . Could you maybe have a look on this PR? It will help us get complete spring training statcast data.

ss77995ss avatar Mar 28 '24 16:03 ss77995ss

Ran the CI. Seems like a fine change. I don't do a much here anymore, but if @schorrm doesn't pull the trigger in the next few days I'll merge it.

tjburch avatar Apr 01 '24 19:04 tjburch

Does the function filter out spring training? Can we?

schorrm avatar Apr 01 '24 20:04 schorrm

Does the function filter out spring training? Can we?

They used argument hfGT to filter Currently in pybaseball uses value &hfGT=R%7CPO%7CS%7C= (URL decode would be R|PO|S|=) which contains Regular Season, Spring Training and Playoff data

ref: pybaseball code, Baseball Savant's Search page

ss77995ss avatar Apr 02 '24 04:04 ss77995ss