Note
Click here to download the full example code
Retrosheet EventsΒΆ
Out:
GAME_ID AWAY_TEAM_ID ... UNKNOWN_OUT_EXC_FL UNCERTAIN_PLAY_EXC_FL
0 OAK198204060 CAL ... F F
1 OAK198204060 CAL ... F F
2 OAK198204060 CAL ... F F
3 OAK198204060 CAL ... F F
4 OAK198204060 CAL ... F F
... ... ... ... ... ...
6204 OAK198209260 KCA ... F F
6205 OAK198209260 KCA ... F F
6206 OAK198209260 KCA ... F F
6207 OAK198209260 KCA ... F F
6208 OAK198209260 KCA ... F F
[6209 rows x 159 columns]
GAME_ID AWAY_TEAM_ID ... UNKNOWN_OUT_EXC_FL UNCERTAIN_PLAY_EXC_FL
0 OAK198204060 CAL ... F F
1 OAK198204060 CAL ... F F
2 OAK198204060 CAL ... F F
3 OAK198204060 CAL ... F F
4 OAK198204060 CAL ... F F
... ... ... ... ... ...
6204 OAK198209260 KCA ... F F
6205 OAK198209260 KCA ... F F
6206 OAK198209260 KCA ... F F
6207 OAK198209260 KCA ... F F
6208 OAK198209260 KCA ... F F
[6209 rows x 159 columns]
from pybbda.data import RetrosheetData
retrosheet_data = RetrosheetData()
print(retrosheet_data.df_from_team_id("1982OAK"))
print(
retrosheet_data.df_from_file(
"https://raw.githubusercontent.com/"
"chadwickbureau/retrosheet/master/event/regular/"
"1982OAK.EVA"
)
)
Total running time of the script: ( 0 minutes 8.301 seconds)