Games

data.nba.com Game Item

class pbpstats.resources.games.data_nba_game_item.DataNbaGameItem(item)[source]

Bases: object

Class for game data from data.nba.com

Parameters:item (dict) – dict with game data
data

returns game dict

is_final

returns True if game is final, False otherwise

Games

The Games class has some basic properties for handling game data

class pbpstats.resources.games.games.Games(items)[source]

Bases: pbpstats.resources.base.Base

Class for games items

Parameters:items (list) – list of either StatsNbaGameItem or DataNbaGameItem items, typically from a games data loader
data

returns list of dicts with game items

final_games

returns list of dicts with final game items

stats.nba.com Game Item

class pbpstats.resources.games.stats_nba_game_item.StatsNbaGameItem(item)[source]

Bases: object

Class for game data from stats.nba.com

Parameters:item (dict) – dict with game data
data

returns game dict

is_final

returns True if game is final, False otherwise