As far as I can tell, there isn't a field in the event file (https://www.retrosheet.org/eventfile.htm) that states the winning team. By my understanding it could either be found from the game file (https://www.retrosheet.org/gamelogs/glfields.txt), or calculated from runs scored, or by matching the winning pitcher (which IS in the event file) to his team. Am I missing an easier way to get the winning team from just the event file?
Retrosheet is more specifically for events within a game. Have you checked out Pybaseball module? It contains all of retrosheet data and A TON more. Including the Pybaseball.schedule-and-record(2021,'NYY') you can get game outcomes for entire seasons via the Lahman Database. <--much more versatile than retrosheet for your wanted results IMO. It is the source of alllll my MLB modelling. You can also download the Lahman for free just google seanlahman.com! https://github.com/jldbc/pybaseball Goodluck! -Otot
B.t.w . Also try pybaseball.game_logs() or pybaseball.lahman.teams()will have team level data on a yearly scale. Pybaseball.schedule_and_record(startYYYY, endYYYYoptional(if nothing entered will end with most recent available info),team abbr."XXX", ind=0or1(0=all data combined to one row, 1=yearlystatsrow are ind. seasons