Starting to add data, might need to be in a database
This commit is contained in:
164
data.py
Normal file
164
data.py
Normal file
@@ -0,0 +1,164 @@
|
||||
bb_game_data = {
|
||||
"date-yyyymmdd": "",
|
||||
"num-of-game": 0,
|
||||
"day-of-week": "",
|
||||
"visiting-team": "",
|
||||
"visiting-league": "",
|
||||
"visiting-game-num": 0,
|
||||
"home-team": "",
|
||||
"home-league": "",
|
||||
"home-game-num": 0,
|
||||
"visiting-score": 0,
|
||||
"home-score": 0,
|
||||
"length-in-outs": 0,
|
||||
"day-night": "",
|
||||
"completion-info": "", # Don't worry about this field
|
||||
"forfeit": "", # probably just ignore if this is set
|
||||
"protest": "", # probably just ignore if this is set
|
||||
"park-id": "",
|
||||
"attendance": "",
|
||||
"length-in-min": "",
|
||||
"visiting-line-scores": "", # Don't worry about this field
|
||||
"home-line-scores": "", # Don't worry about this field
|
||||
|
||||
# Probably can ignore from here to ...
|
||||
"visiting-at-bats": 0,
|
||||
"visiting-hits": 0,
|
||||
"visiting-doubles": 0,
|
||||
"visiting-triples": 0,
|
||||
"visiting-homeruns": 0,
|
||||
"visiting-rbi": 0,
|
||||
"visiting-sacrifice-hits": 0,
|
||||
"visiting-sacrifice-flies": 0,
|
||||
"visiting-hit-by-pitch": 0,
|
||||
"visiting-walks": 0,
|
||||
"visiting-intentional-walks": 0,
|
||||
"visiting-strikeouts": 0,
|
||||
"visiting-stolen-bases": 0,
|
||||
"visiting-caught-stealing": 0,
|
||||
"visiting-grounded-double": 0,
|
||||
"visiting-interference": 0,
|
||||
"visiting-left-on-base": 0,
|
||||
|
||||
"visiting-pitchers-used": 0,
|
||||
"visiting-individual-earned-runs": 0,
|
||||
"visiting-team-earned-runs": 0,
|
||||
"visiting-wild-pitches": 0,
|
||||
"visiting-balks": 0,
|
||||
|
||||
"visiting-putouts": 0,
|
||||
"visiting-assists": 0,
|
||||
"visiting-errors": 0,
|
||||
"visiting-passed": 0,
|
||||
"visiting-double-play": 0,
|
||||
"visiting-triple-play": 0,
|
||||
|
||||
"home-at-bats": 0,
|
||||
"home-hits": 0,
|
||||
"home-doubles": 0,
|
||||
"home-triples": 0,
|
||||
"home-homeruns": 0,
|
||||
"home-rbi": 0,
|
||||
"home-sacrifice-hits": 0,
|
||||
"home-sacrifice-flies": 0,
|
||||
"home-hit-by-pitch": 0,
|
||||
"home-walks": 0,
|
||||
"home-intentional-walks": 0,
|
||||
"home-strikeouts": 0,
|
||||
"home-stolen-bases": 0,
|
||||
"home-caught-stealing": 0,
|
||||
"home-grounded-double": 0,
|
||||
"home-interference": 0,
|
||||
"home-left-on-base": 0,
|
||||
|
||||
"home-pitchers-used": 0,
|
||||
"home-individual-earned-runs": 0,
|
||||
"home-team-earned-runs": 0,
|
||||
"home-wild-pitches": 0,
|
||||
"home-balks": 0,
|
||||
|
||||
"home-putouts": 0,
|
||||
"home-assists": 0,
|
||||
"home-errors": 0,
|
||||
"home-passed": 0,
|
||||
"home-double-play": 0,
|
||||
"home-triple-play": 0,
|
||||
# ... ignore to here
|
||||
|
||||
"home-plate-ump-id": "",
|
||||
"home-plate-ump-name": "",
|
||||
"1b-plate-ump-id": "",
|
||||
"1b-plate-ump-name": "",
|
||||
"2b-plate-ump-id": "",
|
||||
"2b-plate-ump-name": "",
|
||||
"3b-plate-ump-id": "",
|
||||
"3b-plate-ump-name": "",
|
||||
"lf-plate-ump-id": "",
|
||||
"lf-plate-ump-name": "",
|
||||
"rf-plate-ump-id": "",
|
||||
"rf-plate-ump-name": "",
|
||||
|
||||
"visiting-manager-id": "",
|
||||
"visiting-manager-name": "",
|
||||
|
||||
"home-manager-id": "",
|
||||
"home-manager-name": "",
|
||||
|
||||
"winning-pitcher-id": "",
|
||||
"winning-pitcher-name": "",
|
||||
|
||||
"losing-pitcher-id": "",
|
||||
"losing-pitcher-name": "",
|
||||
|
||||
"saving-pitcher-id": "",
|
||||
"saving-pitcher-name": "",
|
||||
|
||||
"rbi-batter-id": "",
|
||||
"rbi-batter-name": "",
|
||||
|
||||
"visiting-start-pitcher-id": "",
|
||||
"visiting-start-pitcher-name": "",
|
||||
|
||||
"home-start-pitcher-id": "",
|
||||
"home-start-pitcher-name": "",
|
||||
|
||||
"visiting-starting-1": "",
|
||||
"visiting-starting-2": "",
|
||||
"visiting-starting-3": "",
|
||||
"visiting-starting-4": "",
|
||||
"visiting-starting-5": "",
|
||||
"visiting-starting-6": "",
|
||||
"visiting-starting-7": "",
|
||||
"visiting-starting-8": "",
|
||||
"visiting-starting-9": "",
|
||||
|
||||
"home-starting-1": "",
|
||||
"home-starting-2": "",
|
||||
"home-starting-3": "",
|
||||
"home-starting-4": "",
|
||||
"home-starting-5": "",
|
||||
"home-starting-6": "",
|
||||
"home-starting-7": "",
|
||||
"home-starting-8": "",
|
||||
"home-starting-9": "",
|
||||
|
||||
"additional-info": "", # Don't worry about this field
|
||||
"aquisition-info": "", # Don't worry about this field
|
||||
|
||||
# Additional info not in original
|
||||
# I'll need to supply
|
||||
|
||||
# Previous game stats
|
||||
"prev-win-loss": "",
|
||||
"prev-win-streak": 0,
|
||||
"prev-loss-streak": 0,
|
||||
|
||||
# Weather
|
||||
"temperature-f": 0,
|
||||
"air-pressure": 0,
|
||||
"average-wind-speed": 0,
|
||||
"percipitation": "",
|
||||
"percipitation-amuont-in": 0,
|
||||
"sky-condition": "", # sunny, partly sunny, cloudy
|
||||
}
|
||||
|
||||
2430
data/gl2022.csv
Normal file
2430
data/gl2022.csv
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user