-
Notifications
You must be signed in to change notification settings - Fork 0
/
schedule_saver.py
35 lines (34 loc) · 942 Bytes
/
schedule_saver.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
abbreviations = ["ARI",
"ATL",
"BAL",
"BOS",
"CHW",
"CHC",
"CIN",
"CLE",
"COL",
"DET",
"HOU",
"KC",
"LAA",
"LAD",
"MIA",
"MIL",
"MIN",
"NYM",
"NYY",
"OAK",
"PHI",
"PIT",
"SD",
"SF",
"SEA",
"STL",
"TB",
"TEX",
"TOR",
"WSN"]
from pybaseball import schedule_and_record
for team in abbreviations:
schedule = schedule_and_record(2017, team)
schedule.to_pickle("/Users/devonallison/code/Monopoly/src/main/thesis/data/schedules/" + team + ".pkl")