jldbc / jldbc/pybaseball

statcast_single_game Only works after game has concluded.

Open
#476 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
1.7k
Forks
428
PR merge metrics
No merged PRs in 30d

Description

As my title states, I can only pull data after the game has concluded. I'd like to view this data as the game is progressing along..

Here is a snippet of my code:
```
def getSingleGameStatCastData( gamePK ):

singleGameStatCastData = statcast_single_game(gamePK)

return singleGameStatCastData

GAMEPK = 778279

# get all the statcast data for given game ( game_pk )
hittinData = common_subs.getSingleGameStatCastData(GAMEPK)
```
I get the following error:
TypeError: 'NoneType' object is not subscriptable

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.