<jupyter_start><jupyter_text>Lets take a look at Players!<jupyter_code>player_id = "203500"<jupyter_output><empty_output><jupyter_text>Trivial to get all player details:<jupyter_code># PersonID is the same as player_id
player_list = api_player.PlayerList()
player_list.info().head()
thing = player_list.info()
thing[thing.PERSON_ID == int(player_id)]<jupyter_output><empty_output><jupyter_text>Trivial to get a list of game ids (with stats included) for a player:<jupyter_code>game_logs = api_player.PlayerGameLogs(player_id, season='2016-17', season_type='Regular Season')
game_logs.info().head()<jupyter_output><empty_output><jupyter_text>What else? Aggregated Career stats and rankings:<jupyter_code>player_career = api_player.PlayerCareer(player_id)
player_career.regular_season_career_totals().head()<jupyter_output><empty_output><jupyter_text>Not sure if the splits will be useful<jupyter_code>player_last_N_splits = api_player.PlayerLastNGamesSplits(player_id)
player_last_N_splits.last10()
player_general_splits = api_player.PlayerGeneralSplits()
player_general_splits.json
player_profile = api_player.PlayerProfile(player_id)
player_clutch = api_player.PlayerClutchSplits(player_id)
player_clutch.last10sec_deficit_3point().head()<jupyter_output><empty_output><jupyter_text>Most of the Game API endpoints break down the stats on the player level:<jupyter_code>game_id = "0021600457"
player_tracking = api_game.PlayerTracking("0021600457")
player_tracking.info().head()
boxscore_summary = api_game.BoxscoreSummary("0021600457")
boxscore_summary.inactive_players()
boxscore = api_game.Boxscore(game_id)
boxscore.player_stats().iloc[:,:].head()
boxscore_adv = api_game.BoxscoreAdvanced(game_id)
boxscore_adv.sql_players_advanced().head()
boxscore_4f = api_game.BoxscoreFourFactors(game_id)
boxscore_4f.sql_players_four_factors().head()
boxscore_misc = api_game.BoxscoreMisc(game_id)
boxscore_misc.sql_players_misc().head()
# boxscore_score = api_game.BoxscoreScoring(game_id)
boxscore_score.sql_players_scoring().head()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.10656934306569343, 'fraction_numerical': 0.023844282238442822, 'mean_word_length': 11.613496932515337, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '6', 'dir': 'jupyter-structured-clean-dedup', 'id': '412600', 'license': 'MIT', 'n_tokens_mistral': 779, 'n_tokens_neox': 731, 'n_words': 103, 'path': 'notebooks/004_Explore_player_data.ipynb', 'repo_name': 'david-hunt-engineer/nba', 'size': '2055'}