nba_py.player module

class nba_py.player.PlayerCareer(player_id, per_mode='PerGame', league_id='00')

Contains stats based on several parameters such as career regular season totals, post season career totals, all star season careers totals, college season career totals, etc.

Args:
player_id:Player ID to look up
per_mode:Mode to measure statistics (Totals, PerGame, Per36, etc.)
league_id:ID for the league to look in (Default is 00)
Attributes:
json:Contains the full json dump to play around with
all_star_season_totals()
career_all_star_season_totals()
college_season_career_totals()
college_season_totals()
post_season_career_totals()
post_season_rankings()
post_season_totals()
preseason_career_totals()
preseason_season_totals()
regular_season_career_totals()
regular_season_rankings()
regular_season_totals()
class nba_py.player.PlayerClutchSplits(player_id, team_id=0, measure_type='Base', per_mode='PerGame', plus_minus='N', pace_adjust='N', rank='N', league_id='00', season='2017-18', season_type='Regular Season', po_round='0', outcome='', location='', month='0', season_segment='', date_from='', date_to='', opponent_team_id='0', vs_conference='', vs_division='', game_segment='', period='0', shot_clock_range='', last_n_games='0')

Bases: nba_py.player._PlayerDashboard

Contains a lot of methods for last n minutes with a deficit of x points

Args:
player_id:ID of the player to look up
team_id:ID of the team to look up
measure_type:Specifies type of measure to use (Base, Advanced, etc.)
per_mode:Mode to measure statistics (Totals, PerGame, Per36, etc.)
plus_minus:Whether or not to consider plus minus (Y or N)
pace_adjust:Whether or not to pace adjust stats (Y or N)
rank:Whether or not to consider rank (Y or N)
league_id:ID for the league to look in (Default is 00)
season:Season given to look up
season_type:Season type to consider (Regular / Playoffs)
po_round:Playoff round
outcome:Filter out by wins or losses
location:Filter out by home or away
month:Specify month to filter by
season_segment:Filter by pre/post all star break
date_from:Filter out games before a specific date
date_to:Filter out games after a specific date
opponent_team_id:
 Opponent team ID to look up
vs_conference:Filter by conference
vs_division:Filter by division
game_segment:Filter by half / overtime
period:Filter by quarter / specific overtime
shot_clock_range:
 Filter statistics by range in shot clock
last_n_games:Filter by number of games specified in N
Attributes:
json:Contains the full json dump to play around with
last10sec_deficit_3point()

Results in last 5 minutes <= 5 points

last1min_deficit_5point()

Results in last 5 minutes <= 5 points

last1min_plusminus_5point()

Last 1 minutes +/= 5 points

last30sec_deficit_3point()

Results in last 5 minutes <= 5 points

last30sec_plusminus_5point()

Last 30 seconds +/= 3 points

last3min_deficit_5point()

Results in last 5 minutes <= 5 points

last3min_plusminus_5point()

Last 3 minutes +/= 5 points

last5min_deficit_5point()

Results in last 5 minutes <= 5 points

last5min_plusminus_5point()

Last 5 minutes +/= 5 points

class nba_py.player.PlayerDefenseTracking(player_id, team_id=0, measure_type='Base', per_mode='PerGame', plus_minus='N', pace_adjust='N', rank='N', league_id='00', season='2017-18', season_type='Regular Season', po_round='0', outcome='', location='', month='0', season_segment='', date_from='', date_to='', opponent_team_id='0', vs_conference='', vs_division='', game_segment='', period='0', shot_clock_range='', last_n_games='0')

Bases: nba_py.player._PlayerDashboard

Tracking data for defense for a given player

Args:
player_id:ID of the player to look up
team_id:ID of the team to look up
measure_type:Specifies type of measure to use (Base, Advanced, etc.)
per_mode:Mode to measure statistics (Totals, PerGame, Per36, etc.)
plus_minus:Whether or not to consider plus minus (Y or N)
pace_adjust:Whether or not to pace adjust stats (Y or N)
rank:Whether or not to consider rank (Y or N)
league_id:ID for the league to look in (Default is 00)
season:Season given to look up
season_type:Season type to consider (Regular / Playoffs)
po_round:Playoff round
outcome:Filter out by wins or losses
location:Filter out by home or away
month:Specify month to filter by
season_segment:Filter by pre/post all star break
date_from:Filter out games before a specific date
date_to:Filter out games after a specific date
opponent_team_id:
 Opponent team ID to look up
vs_conference:Filter by conference
vs_division:Filter by division
game_segment:Filter by half / overtime
period:Filter by quarter / specific overtime
shot_clock_range:
 Filter statistics by range in shot clock
last_n_games:Filter by number of games specified in N
Attributes:
json:Contains the full json dump to play around with
class nba_py.player.PlayerGameLogs(player_id, league_id='00', season='2017-18', season_type='Regular Season')

Contains a full log of all the games for a player for a given season

Args:
player_id:ID of the player to look up
league_id:ID for the league to look in (Default is 00)
season:Season given to look up
season_type:Season type to consider (Regular / Playoffs)
Attributes:
json:Contains the full json dump to play around with
info()
class nba_py.player.PlayerGeneralSplits(player_id, team_id=0, measure_type='Base', per_mode='PerGame', plus_minus='N', pace_adjust='N', rank='N', league_id='00', season='2017-18', season_type='Regular Season', po_round='0', outcome='', location='', month='0', season_segment='', date_from='', date_to='', opponent_team_id='0', vs_conference='', vs_division='', game_segment='', period='0', shot_clock_range='', last_n_games='0')

Bases: nba_py.player._PlayerDashboard

Contains stats pertaining to location, wins and losses, pre/post all star break, starting position, and numbers of days rest

Args:
player_id:ID of the player to look up
team_id:ID of the team to look up
measure_type:Specifies type of measure to use (Base, Advanced, etc.)
per_mode:Mode to measure statistics (Totals, PerGame, Per36, etc.)
plus_minus:Whether or not to consider plus minus (Y or N)
pace_adjust:Whether or not to pace adjust stats (Y or N)
rank:Whether or not to consider rank (Y or N)
league_id:ID for the league to look in (Default is 00)
season:Season given to look up
season_type:Season type to consider (Regular / Playoffs)
po_round:Playoff round
outcome:Filter out by wins or losses
location:Filter out by home or away
month:Specify month to filter by
season_segment:Filter by pre/post all star break
date_from:Filter out games before a specific date
date_to:Filter out games after a specific date
opponent_team_id:
 Opponent team ID to look up
vs_conference:Filter by conference
vs_division:Filter by division
game_segment:Filter by half / overtime
period:Filter by quarter / specific overtime
shot_clock_range:
 Filter statistics by range in shot clock
last_n_games:Filter by number of games specified in N
Attributes:
json:Contains the full json dump to play around with
days_rest()
location()
month()
pre_post_all_star()
starting_position()
win_losses()
class nba_py.player.PlayerInGameSplits(player_id, team_id=0, measure_type='Base', per_mode='PerGame', plus_minus='N', pace_adjust='N', rank='N', league_id='00', season='2017-18', season_type='Regular Season', po_round='0', outcome='', location='', month='0', season_segment='', date_from='', date_to='', opponent_team_id='0', vs_conference='', vs_division='', game_segment='', period='0', shot_clock_range='', last_n_games='0')

Bases: nba_py.player._PlayerDashboard

Contains player stats by half, by quarter, by score margin, and by actual margins.

Args:
player_id:ID of the player to look up
team_id:ID of the team to look up
measure_type:Specifies type of measure to use (Base, Advanced, etc.)
per_mode:Mode to measure statistics (Totals, PerGame, Per36, etc.)
plus_minus:Whether or not to consider plus minus (Y or N)
pace_adjust:Whether or not to pace adjust stats (Y or N)
rank:Whether or not to consider rank (Y or N)
league_id:ID for the league to look in (Default is 00)
season:Season given to look up
season_type:Season type to consider (Regular / Playoffs)
po_round:Playoff round
outcome:Filter out by wins or losses
location:Filter out by home or away
month:Specify month to filter by
season_segment:Filter by pre/post all star break
date_from:Filter out games before a specific date
date_to:Filter out games after a specific date
opponent_team_id:
 Opponent team ID to look up
vs_conference:Filter by conference
vs_division:Filter by division
game_segment:Filter by half / overtime
period:Filter by quarter / specific overtime
shot_clock_range:
 Filter statistics by range in shot clock
last_n_games:Filter by number of games specified in N
Attributes:
json:Contains the full json dump to play around with
by_actual_margin()
by_half()
by_period()
by_score_margin()
class nba_py.player.PlayerLastNGamesSplits(player_id, team_id=0, measure_type='Base', per_mode='PerGame', plus_minus='N', pace_adjust='N', rank='N', league_id='00', season='2017-18', season_type='Regular Season', po_round='0', outcome='', location='', month='0', season_segment='', date_from='', date_to='', opponent_team_id='0', vs_conference='', vs_division='', game_segment='', period='0', shot_clock_range='', last_n_games='0')

Bases: nba_py.player._PlayerDashboard

Contains players stats per last 5, 10, 15, and 20 games, or specified number of games.

Args:
player_id:ID of the player to look up
team_id:ID of the team to look up
measure_type:Specifies type of measure to use (Base, Advanced, etc.)
per_mode:Mode to measure statistics (Totals, PerGame, Per36, etc.)
plus_minus:Whether or not to consider plus minus (Y or N)
pace_adjust:Whether or not to pace adjust stats (Y or N)
rank:Whether or not to consider rank (Y or N)
league_id:ID for the league to look in (Default is 00)
season:Season given to look up
season_type:Season type to consider (Regular / Playoffs)
po_round:Playoff round
outcome:Filter out by wins or losses
location:Filter out by home or away
month:Specify month to filter by
season_segment:Filter by pre/post all star break
date_from:Filter out games before a specific date
date_to:Filter out games after a specific date
opponent_team_id:
 Opponent team ID to look up
vs_conference:Filter by conference
vs_division:Filter by division
game_segment:Filter by half / overtime
period:Filter by quarter / specific overtime
shot_clock_range:
 Filter statistics by range in shot clock
last_n_games:Filter by number of games specified in N
Attributes:
json:Contains the full json dump to play around with
gamenumber()
last10()
last15()
last20()
last5()
class nba_py.player.PlayerList(league_id='00', season='2017-18', only_current=1)

Contains a list of all players for a season, if specified, and will only contain current players if specified as well

Args:
league_id:ID for the league to look in (Default is 00)
season:Season given to look up
only_current:Restrict lookup to only current players
Attributes:
json:Contains the full json dump to play around with
info()
exception nba_py.player.PlayerNotFoundException

Bases: exceptions.Exception

class nba_py.player.PlayerOpponentSplits(player_id, team_id=0, measure_type='Base', per_mode='PerGame', plus_minus='N', pace_adjust='N', rank='N', league_id='00', season='2017-18', season_type='Regular Season', po_round='0', outcome='', location='', month='0', season_segment='', date_from='', date_to='', opponent_team_id='0', vs_conference='', vs_division='', game_segment='', period='0', shot_clock_range='', last_n_games='0')

Bases: nba_py.player._PlayerDashboard

Contains stats pertaining to player stats vs certain opponents by division, conference, and by specific team opponent

Args:
player_id:ID of the player to look up
team_id:ID of the team to look up
measure_type:Specifies type of measure to use (Base, Advanced, etc.)
per_mode:Mode to measure statistics (Totals, PerGame, Per36, etc.)
plus_minus:Whether or not to consider plus minus (Y or N)
pace_adjust:Whether or not to pace adjust stats (Y or N)
rank:Whether or not to consider rank (Y or N)
league_id:ID for the league to look in (Default is 00)
season:Season given to look up
season_type:Season type to consider (Regular / Playoffs)
po_round:Playoff round
outcome:Filter out by wins or losses
location:Filter out by home or away
month:Specify month to filter by
season_segment:Filter by pre/post all star break
date_from:Filter out games before a specific date
date_to:Filter out games after a specific date
opponent_team_id:
 Opponent team ID to look up
vs_conference:Filter by conference
vs_division:Filter by division
game_segment:Filter by half / overtime
period:Filter by quarter / specific overtime
shot_clock_range:
 Filter statistics by range in shot clock
last_n_games:Filter by number of games specified in N
Attributes:
json:Contains the full json dump to play around with
by_conference()
by_division()
by_opponent()
class nba_py.player.PlayerPassTracking(player_id, team_id=0, measure_type='Base', per_mode='PerGame', plus_minus='N', pace_adjust='N', rank='N', league_id='00', season='2017-18', season_type='Regular Season', po_round='0', outcome='', location='', month='0', season_segment='', date_from='', date_to='', opponent_team_id='0', vs_conference='', vs_division='', game_segment='', period='0', shot_clock_range='', last_n_games='0')

Bases: nba_py.player._PlayerDashboard

Tracking data for passing for a given player

Args:
player_id:ID of the player to look up
team_id:ID of the team to look up
measure_type:Specifies type of measure to use (Base, Advanced, etc.)
per_mode:Mode to measure statistics (Totals, PerGame, Per36, etc.)
plus_minus:Whether or not to consider plus minus (Y or N)
pace_adjust:Whether or not to pace adjust stats (Y or N)
rank:Whether or not to consider rank (Y or N)
league_id:ID for the league to look in (Default is 00)
season:Season given to look up
season_type:Season type to consider (Regular / Playoffs)
po_round:Playoff round
outcome:Filter out by wins or losses
location:Filter out by home or away
month:Specify month to filter by
season_segment:Filter by pre/post all star break
date_from:Filter out games before a specific date
date_to:Filter out games after a specific date
opponent_team_id:
 Opponent team ID to look up
vs_conference:Filter by conference
vs_division:Filter by division
game_segment:Filter by half / overtime
period:Filter by quarter / specific overtime
shot_clock_range:
 Filter statistics by range in shot clock
last_n_games:Filter by number of games specified in N
Attributes:
json:Contains the full json dump to play around with
passes_made()
passes_received()
class nba_py.player.PlayerPerformanceSplits(player_id, team_id=0, measure_type='Base', per_mode='PerGame', plus_minus='N', pace_adjust='N', rank='N', league_id='00', season='2017-18', season_type='Regular Season', po_round='0', outcome='', location='', month='0', season_segment='', date_from='', date_to='', opponent_team_id='0', vs_conference='', vs_division='', game_segment='', period='0', shot_clock_range='', last_n_games='0')

Bases: nba_py.player._PlayerDashboard

Player stats by different performance metrics such as score differntial, points scored, and points scored against

Args:
player_id:ID of the player to look up
team_id:ID of the team to look up
measure_type:Specifies type of measure to use (Base, Advanced, etc.)
per_mode:Mode to measure statistics (Totals, PerGame, Per36, etc.)
plus_minus:Whether or not to consider plus minus (Y or N)
pace_adjust:Whether or not to pace adjust stats (Y or N)
rank:Whether or not to consider rank (Y or N)
league_id:ID for the league to look in (Default is 00)
season:Season given to look up
season_type:Season type to consider (Regular / Playoffs)
po_round:Playoff round
outcome:Filter out by wins or losses
location:Filter out by home or away
month:Specify month to filter by
season_segment:Filter by pre/post all star break
date_from:Filter out games before a specific date
date_to:Filter out games after a specific date
opponent_team_id:
 Opponent team ID to look up
vs_conference:Filter by conference
vs_division:Filter by division
game_segment:Filter by half / overtime
period:Filter by quarter / specific overtime
shot_clock_range:
 Filter statistics by range in shot clock
last_n_games:Filter by number of games specified in N
Attributes:
json:Contains the full json dump to play around with
points_against()
points_scored()
score_differential()
class nba_py.player.PlayerProfile(player_id, per_mode='PerGame', league_id='00')

Bases: nba_py.player.PlayerCareer

Contains a more in depth version of player career stats with season highs, career highs, and when the player’s next game is

Args:
player_id:Player ID to look up
per_mode:Mode to measure statistics (Totals, PerGame, Per36, etc.)
league_id:ID for the league to look in (Default is 00)
Attributes:
json:Contains the full json dump to play around with
career_highs()
next_game()
season_highs()
class nba_py.player.PlayerReboundLogTracking(player_id, team_id=0, measure_type='Base', per_mode='PerGame', plus_minus='N', pace_adjust='N', rank='N', league_id='00', season='2017-18', season_type='Regular Season', po_round='0', outcome='', location='', month='0', season_segment='', date_from='', date_to='', opponent_team_id='0', vs_conference='', vs_division='', game_segment='', period='0', shot_clock_range='', last_n_games='0')

Bases: nba_py.player._PlayerDashboard

Contains a log for every rebound for a given season for a given player

Args:
player_id:ID of the player to look up
team_id:ID of the team to look up
measure_type:Specifies type of measure to use (Base, Advanced, etc.)
per_mode:Mode to measure statistics (Totals, PerGame, Per36, etc.)
plus_minus:Whether or not to consider plus minus (Y or N)
pace_adjust:Whether or not to pace adjust stats (Y or N)
rank:Whether or not to consider rank (Y or N)
league_id:ID for the league to look in (Default is 00)
season:Season given to look up
season_type:Season type to consider (Regular / Playoffs)
po_round:Playoff round
outcome:Filter out by wins or losses
location:Filter out by home or away
month:Specify month to filter by
season_segment:Filter by pre/post all star break
date_from:Filter out games before a specific date
date_to:Filter out games after a specific date
opponent_team_id:
 Opponent team ID to look up
vs_conference:Filter by conference
vs_division:Filter by division
game_segment:Filter by half / overtime
period:Filter by quarter / specific overtime
shot_clock_range:
 Filter statistics by range in shot clock
last_n_games:Filter by number of games specified in N
Attributes:
json:Contains the full json dump to play around with
class nba_py.player.PlayerReboundTracking(player_id, team_id=0, measure_type='Base', per_mode='PerGame', plus_minus='N', pace_adjust='N', rank='N', league_id='00', season='2017-18', season_type='Regular Season', po_round='0', outcome='', location='', month='0', season_segment='', date_from='', date_to='', opponent_team_id='0', vs_conference='', vs_division='', game_segment='', period='0', shot_clock_range='', last_n_games='0')

Bases: nba_py.player._PlayerDashboard

Tracking data for rebounding for a given player

Args:
player_id:ID of the player to look up
team_id:ID of the team to look up
measure_type:Specifies type of measure to use (Base, Advanced, etc.)
per_mode:Mode to measure statistics (Totals, PerGame, Per36, etc.)
plus_minus:Whether or not to consider plus minus (Y or N)
pace_adjust:Whether or not to pace adjust stats (Y or N)
rank:Whether or not to consider rank (Y or N)
league_id:ID for the league to look in (Default is 00)
season:Season given to look up
season_type:Season type to consider (Regular / Playoffs)
po_round:Playoff round
outcome:Filter out by wins or losses
location:Filter out by home or away
month:Specify month to filter by
season_segment:Filter by pre/post all star break
date_from:Filter out games before a specific date
date_to:Filter out games after a specific date
opponent_team_id:
 Opponent team ID to look up
vs_conference:Filter by conference
vs_division:Filter by division
game_segment:Filter by half / overtime
period:Filter by quarter / specific overtime
shot_clock_range:
 Filter statistics by range in shot clock
last_n_games:Filter by number of games specified in N
Attributes:
json:Contains the full json dump to play around with
num_contested_rebounding()
rebound_distance_rebounding()
shot_distance_rebounding()
shot_type_rebounding()
class nba_py.player.PlayerShootingSplits(player_id, team_id=0, measure_type='Base', per_mode='PerGame', plus_minus='N', pace_adjust='N', rank='N', league_id='00', season='2017-18', season_type='Regular Season', po_round='0', outcome='', location='', month='0', season_segment='', date_from='', date_to='', opponent_team_id='0', vs_conference='', vs_division='', game_segment='', period='0', shot_clock_range='', last_n_games='0')

Bases: nba_py.player._PlayerDashboard

Shooting stats based on distance, area, assisted to, shot types, and assisted by.

Args:
player_id:ID of the player to look up
team_id:ID of the team to look up
measure_type:Specifies type of measure to use (Base, Advanced, etc.)
per_mode:Mode to measure statistics (Totals, PerGame, Per36, etc.)
plus_minus:Whether or not to consider plus minus (Y or N)
pace_adjust:Whether or not to pace adjust stats (Y or N)
rank:Whether or not to consider rank (Y or N)
league_id:ID for the league to look in (Default is 00)
season:Season given to look up
season_type:Season type to consider (Regular / Playoffs)
po_round:Playoff round
outcome:Filter out by wins or losses
location:Filter out by home or away
month:Specify month to filter by
season_segment:Filter by pre/post all star break
date_from:Filter out games before a specific date
date_to:Filter out games after a specific date
opponent_team_id:
 Opponent team ID to look up
vs_conference:Filter by conference
vs_division:Filter by division
game_segment:Filter by half / overtime
period:Filter by quarter / specific overtime
shot_clock_range:
 Filter statistics by range in shot clock
last_n_games:Filter by number of games specified in N
Attributes:
json:Contains the full json dump to play around with
assisted_by()
assisted_shots()
shot_5ft()
shot_8ft()
shot_areas()
shot_types_detail()
shot_types_summary()
class nba_py.player.PlayerShotLogTracking(player_id, team_id=0, measure_type='Base', per_mode='PerGame', plus_minus='N', pace_adjust='N', rank='N', league_id='00', season='2017-18', season_type='Regular Season', po_round='0', outcome='', location='', month='0', season_segment='', date_from='', date_to='', opponent_team_id='0', vs_conference='', vs_division='', game_segment='', period='0', shot_clock_range='', last_n_games='0')

Bases: nba_py.player._PlayerDashboard

Contains a log for every shot for a given season for a given player

Args:
player_id:ID of the player to look up
team_id:ID of the team to look up
measure_type:Specifies type of measure to use (Base, Advanced, etc.)
per_mode:Mode to measure statistics (Totals, PerGame, Per36, etc.)
plus_minus:Whether or not to consider plus minus (Y or N)
pace_adjust:Whether or not to pace adjust stats (Y or N)
rank:Whether or not to consider rank (Y or N)
league_id:ID for the league to look in (Default is 00)
season:Season given to look up
season_type:Season type to consider (Regular / Playoffs)
po_round:Playoff round
outcome:Filter out by wins or losses
location:Filter out by home or away
month:Specify month to filter by
season_segment:Filter by pre/post all star break
date_from:Filter out games before a specific date
date_to:Filter out games after a specific date
opponent_team_id:
 Opponent team ID to look up
vs_conference:Filter by conference
vs_division:Filter by division
game_segment:Filter by half / overtime
period:Filter by quarter / specific overtime
shot_clock_range:
 Filter statistics by range in shot clock
last_n_games:Filter by number of games specified in N
Attributes:
json:Contains the full json dump to play around with
class nba_py.player.PlayerShotTracking(player_id, team_id=0, measure_type='Base', per_mode='PerGame', plus_minus='N', pace_adjust='N', rank='N', league_id='00', season='2017-18', season_type='Regular Season', po_round='0', outcome='', location='', month='0', season_segment='', date_from='', date_to='', opponent_team_id='0', vs_conference='', vs_division='', game_segment='', period='0', shot_clock_range='', last_n_games='0')

Bases: nba_py.player._PlayerDashboard

Tracking data for shooting for a given player

Args:
player_id:ID of the player to look up
team_id:ID of the team to look up
measure_type:Specifies type of measure to use (Base, Advanced, etc.)
per_mode:Mode to measure statistics (Totals, PerGame, Per36, etc.)
plus_minus:Whether or not to consider plus minus (Y or N)
pace_adjust:Whether or not to pace adjust stats (Y or N)
rank:Whether or not to consider rank (Y or N)
league_id:ID for the league to look in (Default is 00)
season:Season given to look up
season_type:Season type to consider (Regular / Playoffs)
po_round:Playoff round
outcome:Filter out by wins or losses
location:Filter out by home or away
month:Specify month to filter by
season_segment:Filter by pre/post all star break
date_from:Filter out games before a specific date
date_to:Filter out games after a specific date
opponent_team_id:
 Opponent team ID to look up
vs_conference:Filter by conference
vs_division:Filter by division
game_segment:Filter by half / overtime
period:Filter by quarter / specific overtime
shot_clock_range:
 Filter statistics by range in shot clock
last_n_games:Filter by number of games specified in N
Attributes:
json:Contains the full json dump to play around with
closest_defender_shooting()
closest_defender_shooting_long()
dribble_shooting()
general_shooting()
shot_clock_shooting()
touch_time_shooting()
class nba_py.player.PlayerSummary(player_id)

Contains common player information like headline stats, weight, etc.

Args:
player_id:ID of the player to look up
Attributes:
json:Contains the full json dump to play around with
headline_stats()
info()
class nba_py.player.PlayerVsPlayer(player_id, vs_player_id, team_id=0, measure_type='Base', per_mode='PerGame', plus_minus='N', pace_adjust='N', rank='N', league_id='00', season='2017-18', season_type='Regular Season', po_round='0', outcome='', location='', month='0', season_segment='', date_from='', date_to='', opponent_team_id='0', vs_conference='', vs_division='', game_segment='', period='0', shot_clock_range='', last_n_games='0')

Contains general stats that pertain to players going against other players

Args:
player_id:ID of the player to look up
vs_player_id:ID of the vs player to look up
team_id:ID of the team to look up
measure_type:Specifies type of measure to use (Base, Advanced, etc.)
per_mode:Mode to measure statistics (Totals, PerGame, Per36, etc.)
plus_minus:Whether or not to consider plus minus (Y or N)
pace_adjust:Whether or not to pace adjust stats (Y or N)
rank:Whether or not to consider rank (Y or N)
league_id:ID for the league to look in (Default is 00)
season:Season given to look up
season_type:Season type to consider (Regular / Playoffs)
po_round:Playoff round
outcome:Filter out by wins or losses
location:Filter out by home or away
month:Specify month to filter by
season_segment:Filter by pre/post all star break
date_from:Filter out games before a specific date
date_to:Filter out games after a specific date
opponent_team_id:
 Opponent team ID to look up
vs_conference:Filter by conference
vs_division:Filter by division
game_segment:Filter by half / overtime
period:Filter by quarter / specific overtime
shot_clock_range:
 Filter statistics by range in shot clock
last_n_games:Filter by number of games specified in N
Attributes:
json: Contains the full json dump to play around with
on_off_court()
overall()
player_info()
shot_area_off_court()
shot_area_on_court()
shot_area_overall()
shot_distance_off_court()
shot_distance_on_court()
shot_distance_overall()
vs_player_info()
class nba_py.player.PlayerYearOverYearSplits(player_id, team_id=0, measure_type='Base', per_mode='PerGame', plus_minus='N', pace_adjust='N', rank='N', league_id='00', season='2017-18', season_type='Regular Season', po_round='0', outcome='', location='', month='0', season_segment='', date_from='', date_to='', opponent_team_id='0', vs_conference='', vs_division='', game_segment='', period='0', shot_clock_range='', last_n_games='0')

Bases: nba_py.player._PlayerDashboard

Displays player stats over the given season and over all seasons in the given league

Args:
player_id:ID of the player to look up
team_id:ID of the team to look up
measure_type:Specifies type of measure to use (Base, Advanced, etc.)
per_mode:Mode to measure statistics (Totals, PerGame, Per36, etc.)
plus_minus:Whether or not to consider plus minus (Y or N)
pace_adjust:Whether or not to pace adjust stats (Y or N)
rank:Whether or not to consider rank (Y or N)
league_id:ID for the league to look in (Default is 00)
season:Season given to look up
season_type:Season type to consider (Regular / Playoffs)
po_round:Playoff round
outcome:Filter out by wins or losses
location:Filter out by home or away
month:Specify month to filter by
season_segment:Filter by pre/post all star break
date_from:Filter out games before a specific date
date_to:Filter out games after a specific date
opponent_team_id:
 Opponent team ID to look up
vs_conference:Filter by conference
vs_division:Filter by division
game_segment:Filter by half / overtime
period:Filter by quarter / specific overtime
shot_clock_range:
 Filter statistics by range in shot clock
last_n_games:Filter by number of games specified in N
Attributes:
json:Contains the full json dump to play around with
by_year()
nba_py.player.get_player(first_name, last_name=None, season='2017-18', only_current=0, just_id=True)

Calls our PlayerList class to get a full list of players and then returns just an id if specified or the full row of player information

Args:
first_name:First name of the player
last_name:Last name of the player

(this is None if the player only has first name [Nene]) :only_current: Only wants the current list of players :just_id: Only wants the id of the player

Returns:
Either the ID or full row of information of the player inputted
Raises:
:PlayerNotFoundException: