panzarino/mlbgame

ValueError: Could not find a game with that id.

Open

#52 aperta il 17 gen 2018

Vedi su GitHub
 (21 commenti) (0 reazioni) (0 assegnatari)Python (116 fork)batch import
bugenhancementhelp wanted

Metriche repository

Star
 (509 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Running the same code as before:

def team_games(year,month):
    month = mlbgame.games(year, month)
    games = mlbgame.combine_games(month)
    for game in games:
        print game.game_id
    return games


games = team_games(2016, 5)


and its breaking on random game ids when iterating through.

This one in particular breaks:

stats = mlbgame.team_stats('2016_05_16_bosmlb_kcamlb_1')
era = stats.home_pitching.era
print(era)

Status is also FINAL

Guida contributor