Closed jmaschino56 closed 1 year ago
Seems to work for me:
>>> statcast(start_dt="2022-04-06")
This is a large query, it may take a moment to complete
100%|████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:03<00:00, 3.52s/it]
pitch_type game_date release_speed ... spin_axis delta_home_win_exp delta_run_exp
94 CU 2022-04-06 76.1 ... 329 0.0 <NA>
102 CH 2022-04-06 88.0 ... 154 0.0 <NA>
108 SL 2022-04-06 74.8 ... <NA> 0.0 <NA>
122 CH 2022-04-06 82.2 ... 140 -0.007 <NA>
128 CH 2022-04-06 80.3 ... 151 0.0 <NA>
.. ... ... ... ... ... ... ...
213 SL 2022-04-06 87.1 ... 134 0.0 <NA>
217 FF 2022-04-06 94.4 ... 204 0.022 <NA>
238 SL 2022-04-06 85.0 ... 126 0.0 <NA>
246 FF 2022-04-06 92.3 ... 209 0.0 <NA>
257 FF 2022-04-06 92.7 ... 205 0.0 <NA>
[266 rows x 92 columns]
>>> statcast(start_dt="2022-04-21")
This is a large query, it may take a moment to complete
100%|████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:05<00:00, 5.29s/it]
pitch_type game_date release_speed ... spin_axis delta_home_win_exp delta_run_exp
1428 SL 2022-04-21 87.2 ... 60 -0.16 -0.418
1486 FF 2022-04-21 96.2 ... 210 0.0 -0.148
1524 FF 2022-04-21 96.7 ... 208 0.0 -0.157
1606 SL 2022-04-21 86.1 ... 59 0.0 0.264
1671 SL 2022-04-21 84.6 ... 80 0.0 0.068
... ... ... ... ... ... ... ...
2409 CH 2022-04-21 86.8 ... 239 0.0 -0.043
2466 FF 2022-04-21 92.6 ... 225 0.0 -0.042
2584 FF 2022-04-21 93.6 ... 223 0.0 0.03
2647 CH 2022-04-21 85.7 ... 247 0.022 -0.174
2713 FF 2022-04-21 92.2 ... 223 0.0 -0.03
[2777 rows x 92 columns]
Have you tried clearing your cache? Possibly you pulled before the data was available and now the cache thinks that date ought to return no data?
Were you able to resolve this @jmaschino56?
Closing due to inactivity
I can pull data up to 4/5/2022, but after that, it returns empty data frames.