def postprocess_game_data(gameData):
    """Add derived quantities to make filtering easier"""
    # Load emoji data that will be useful for 2 columns

    trimGameData = []
    for game in gameData:
        trim = {}

        # For each game, create a new version of the game data
        # that drops extraneous keys, copies useful keys,
        # and creates new useful keys to view data by winner/loser
        # in addition to home/away.

        # Keys to keep:
        keep_keys = [
            'id',
            'season',
            'day',
            'awayOdds',
            'awayPitcherName',
            'awayScore',
            'awayTeamEmoji',
            'awayTeamName',
            'awayTeamNickname',
            'homeOdds',
            'homePitcherName',
            'homeScore',
            'homeTeamEmoji',
            'homeTeamName',
            'homeTeamNickname',
            'isPostseason',
            'shame'
        ]
        for key in keep_keys:
            trim[key] = game[key]

        # Keys to add:
        add_keys = ['TeamName', 'TeamNickname', 'TeamEmoji', 'Score', 'Odds', 'PitcherName']
        for key in add_keys:
            # Assign winning/losing a value from home/away as appropriate
            winning_key = "winning" + key
            losing_key = "losing" + key
            home_key = "home" + key
            away_key = "away" + key
            trim[winning_key] = game[home_key] if game['homeScore'] > game['awayScore'] else game[away_key]
            trim[losing_key] = game[home_key] if game['homeScore'] < game['awayScore'] else game[away_key]

        # add more keys here (hard-coded formulas)
        trim['runDiff'] = abs(game['homeScore'] - game['awayScore'])
        trim['whoWon'] = 'home' if game['homeScore'] > game['awayScore'] else 'away'

        trimGameData.append(trim)

    return trimGameData