You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I imported mlbgame at the top of my file, used pip install mlbgame in my directory, and anytime I try to write a small bit of code to test it out, the code executes without anything being printed.
For example, if I run the sample code (taken from the Github page documentation)
from __future__ import print_function
import mlbgame
month = mlbgame.games(2015, 6, home='Mets')
games = mlbgame.combine_games(month)
for game in games:
print(game)
my code runs and does not output a single line. This is also the same case when I try the other provided test code
from __future__ import print_function
import mlbgame
game = mlbgame.day(2015, 11, 1, home='Mets')[0]
stats = mlbgame.player_stats(game.game_id)
for player in stats.home_batting:
print(player)
Am I doing something wrong? I'm pretty new to python from C++, so its entirely possible that I'm messing up a simple step, but I have retraced my steps and have not been able to find out what it may be that I could be messing up. I'm really looking forward to getting this issue resolved and utilizing this. Thanks a ton!
The text was updated successfully, but these errors were encountered:
I imported mlbgame at the top of my file, used
pip install mlbgame
in my directory, and anytime I try to write a small bit of code to test it out, the code executes without anything being printed.For example, if I run the sample code (taken from the Github page documentation)
my code runs and does not output a single line. This is also the same case when I try the other provided test code
Am I doing something wrong? I'm pretty new to python from C++, so its entirely possible that I'm messing up a simple step, but I have retraced my steps and have not been able to find out what it may be that I could be messing up. I'm really looking forward to getting this issue resolved and utilizing this. Thanks a ton!
The text was updated successfully, but these errors were encountered: