Skip to main content
Version: 0.2.0

NBA — additional Python functions

Hand-written wrappers, loaders, and helpers in sportsdataverse.nba that are not generated API-endpoint wrappers (those have their own reference pages).

Highlights​

FunctionSummary
bref_players_statsPlayer season statistics for an entire league season.
bref_standingsConference standings for a season, both conferences stacked.
bref_teams_statsTeam season statistics from the league season page.
compile_nba_seasonCompile a full season's possession stint matrix (cached + resumable + throttled).
espn_nba_player_statsPull an NBA athlete's ESPN season stat line as one wide row.
espn_nba_scheduleespn_nba_schedule - look up the NBA schedule for a given date from ESPN
espn_nba_teamsespn_nba_teams - look up NBA teams
most_recent_nba_seasonReturn the most recent NBA season year based on today's date.

ESPN​

FunctionSummary
espn_nba_calendarespn_nba_calendar - look up the NBA calendar for a given season from ESPN
espn_nba_game_allespn_nba_game_all() - Pull one game's plays, team box and player box from one ESPN request.
espn_nba_game_rostersespn_nba_game_rosters() - Pull the game by id.
espn_nba_pbpespn_nba_pbp() - Pull one game's play-by-play from ESPN's nba/summary endpoint.
espn_nba_player_boxespn_nba_player_box() - Pull one game's player box score from ESPN's nba/summary endpoint.
espn_nba_team_boxespn_nba_team_box() - Pull one game's team box score from ESPN's nba/summary endpoint.
scoreboard_event_parsingInternal helper that flattens an ESPN NBA scoreboard event dict into a

sportsdataverse-data releases​

FunctionSummary
load_nba_stats_draft_combine_anthroLoad draft-combine anthropometric measurements (draftcombineplayeranthro).
load_nba_stats_draft_combine_drillsLoad draft-combine athletic drill results (draftcombinedrillresults).
load_nba_stats_draft_combine_nonstationary_shootingLoad draft-combine off-the-dribble and on-the-move shooting (draftcombinenonstationaryshooting).
load_nba_stats_draft_combine_spot_shootingLoad draft-combine spot-up shooting drills (draftcombinespotshooting).
load_nba_stats_draft_combine_statsLoad the draft-combine summary table (nba_stats_draft_combine, draftcombinestats).
load_nba_stats_hustle_playerLoad player hustle stats (the nba_stats_hustle release, player files).
load_nba_stats_hustle_teamLoad team hustle stats (the nba_stats_hustle release, team files).
load_nba_stats_leaguedashLoad one asset family of the nba_stats_leaguedash release.
load_nba_stats_matchupsLoad offensive-vs-defensive player matchups (nba_stats_matchups, season files).
load_nba_stats_matchups_rollupLoad defensive matchup roll-ups by position (nba_stats_matchups, rollup files).
load_nba_stats_synergyLoad Synergy play-type stats (the nba_stats_synergy release).

NBA Stats API​

FunctionSummary
nba_live_boxscoreFetch and parse NBA cdn.nba.com liveData boxscore for a game.
nba_live_pbpFetch and parse NBA cdn.nba.com liveData play-by-play for a game.

NBA Official Injury Report​

FunctionSummary
nba_injury_reportFetch and parse an official NBA injury report.
nba_injury_report_slotsEvery slot the league's schedule allows on date, earliest first.
nba_injury_report_urlThe archive URL of the report published at report_time (US Eastern).

Fox Sports API​

FunctionSummary
fox_nba_boxscoreNBA boxscore (long: one row per player-stat).
fox_nba_event_matchupFox Sports nba pregame team-stat comparison (one row per stat).
fox_nba_event_recapFox Sports nba postgame top performers (one row per player).
fox_nba_event_standingsFox Sports nba the two teams' standings context.
fox_nba_league_conferencesFox Sports nba conference / group directory.
fox_nba_league_headerFox Sports nba league header (one row).
fox_nba_league_leadersNBA statistical leaders (stats-con); who=player|team.
fox_nba_league_oddsFox Sports nba league odds board (one row per team per game).
fox_nba_league_player_newsFox Sports nba league-wide player news feed.
fox_nba_league_pollsFox Sports nba rankings / polls rendered as standings tables.
fox_nba_league_scheduleFox Sports nba league schedule nav selections.
fox_nba_league_scoresFox Sports nba league scores nav selections.
fox_nba_league_standingsFox Sports nba league-wide standings tables.
fox_nba_league_stat_leadersFox Sports nba league stats landing leaders.
fox_nba_oddsNBA game odds six-pack (spread / to-win / total per team).
fox_nba_pbpNBA play-by-play (one row per play; period-based).
fox_nba_scoreboardFox Sports nba scoreboard nav selections (weeks / dates / groups).
fox_nba_scorechipFox Sports nba compact live score chip (raw dict -- live-only, uncaptured shape).
fox_nba_scores_segmentFox Sports nba one row per game in a scoreboard segment.
fox_nba_standingsNBA standings for a team's conference/division.
fox_nba_team_gamelogNBA team game log (long: one row per game-stat).
fox_nba_team_headerFox Sports nba team header (one row).
fox_nba_team_rosterNBA team roster (one row per player).
fox_nba_team_statsNBA team stat leaders by category.
fox_nba_teamnavFox Sports nba team directory (one row per team).
fox_nba_teamsNBA team directory (fox_team_id / fox_team_name / fox_section).

Basketball-Reference​

FunctionSummary
bref_awardsEnd-of-season award voting, all awards stacked into one frame.
bref_draftNBA draft results with each pick's career totals and advanced metrics.
bref_injuriesThe current NBA injury report.
bref_player_biosThe player index for one last-name initial -- bios plus the id slugs.
bref_player_game_logA player's regular-season game-by-game log.
bref_team_rosterA team's roster for one season.

RealGM​

FunctionSummary
realgm_close_browserClose the cached headless browser, if one is open.
realgm_coachesCurrent NBA head coaches.
realgm_draftResults of one past NBA draft.
realgm_draft_prospectsCurrent NBA draft-prospect statistics.
realgm_early_entryThe current NBA draft early-entrant and withdrawal list.
realgm_future_free_agentsRealGM's projected future NBA free-agent classes, with each player's agent.
realgm_gmsCurrent NBA general managers.
realgm_individual_gamesThe all-time best individual NBA games leaderboard.
realgm_individual_seasonsThe all-time best individual NBA seasons leaderboard.
realgm_player_statsSeason player-statistics leaderboard for one stat family and season segment.
realgm_playersThe active NBA player index from RealGM.
realgm_players_abroadNBA-affiliated players currently playing overseas.
realgm_rookie_scaleThe current NBA rookie-scale salary table.
realgm_salary_capNBA salary-cap history and projections.
realgm_standingsCurrent NBA standings, both conferences stacked.
realgm_team_statsSeason team statistics for one stat family and season segment.
realgm_teamsThe NBA team index with division and conference.
realgm_transactionsThe NBA league transactions log.

Public model datasets​

FunctionSummary
load_darko_dpmParse a DARKO DPM leaderboard CSV (e.g. 2026-darko-dpm-leaderboard.csv).
load_dunks_threes_statsParse a Dunks & Threes counting-stats CSV (e.g. 2025_Dunks_&_Threes_Stats.csv).
load_epmParse a Dunks & Threes EPM CSV ({season}_EPM_data.csv).
load_lebron_dailyParse a LEBRON daily-snapshot CSV (e.g. lebron_daily_2026-07-02.csv).
load_lebron_seasonParse a LEBRON season-file CSV (e.g. lebron-data-2026.csv).
load_rapm_ryan_davisParse a Ryan Davis published RAPM CSV (single-season or multi-year window).
normalize_player_nameFold a player display name to a join-safe key.

Play-by-play processing​

FunctionSummary
build_athlete_identity_lookupR build_athlete_identity_lookup: athlete_id -> identity from team rosters.
build_nba_player_identity_lookupR build_identity_lookup(season): athlete_id -> identity from the
nba_pbp_diskLoad a previously cached ESPN NBA summary JSON for a game from disk.
nba_v3_to_v2_pbpConvert a v3 playbyplayv3 payload into the full v2-schema pbp frame.

Models and calculators​

FunctionSummary
AdjRapmModelPrior-informed RAPM: ridge toward a per-player box prior with an RTO posterior.
AgingCurveEmpirical aging deltas: delta_by_age[a] = expected rating change aging a -> a+1.
BoxPriorModelA cross-fitted box prior: one offense and one defense linear rule per player fold.
CurrentImpactFilterThe joint Kalman filter of nba_current_impact, fed one season and one game at a time.
CurrentImpactParamsThe filter's shock and decay SDs, per 100 possessions (level_sd per possession).
ExternalValidityResultConcurrent-validity correlation of model ratings against a published oracle metric.
ForecastResultForecast-accuracy metrics: predicted-vs-actual next-season rating over held-out transitions.
LeagueConstantsPer-league_id fitted constants for the NBA prediction & market stack.
MeasureSpecPer-model column map for a leaguedashptstats measure.
NbaBpmModelA RatingsModel scoring a fold via faithful BPM 2.0.
NbaSpmModelA RatingsModel that scores a fold via fitted SPM coefficients.
RemlFitA prior-informed ridge fit with separate offense / defense penalties.
RidgeRapmModel5179.47467923, 13894.95494373, 37275.93720315, 100000. ])) -> 'None'`
SeasonGramOne season's RAPM sufficient statistics (the design of build_rapm_design).
SpmCoefficientsFitted SPM coefficients (box features -> offense/defense RAPM, per-100).
ValidationReportHolds all oracle results for a single model evaluation run.
WalkForwardResultOracle 6: walk-forward ("predict tomorrow") retrodiction over a season timeline.
adjust_efficiencyIterative opponent-adjusted rating -> AdjOffRtg / AdjDefRtg / AdjNet per team-season.
adjust_paceOpponent-adjusted pace (possessions/game) per team-season.
advanced_min_possThe possessions (one side) a player needs to be ranked: half the on-court net gate.
apply_box_priorScore box-prior features with each player's out-of-fold rule.
as_of_ratings_splitFilter a results frame to games strictly before a cutoff date (leakage boundary).
box_prior_featuresOne season's box-prior features: league-relative, padded box rates plus player and lineup context.
box_prior_training_seasonsThe seasons a prior for season may learn from: earlier ones, or every other one through 2005.
calibrate_pts_per_winRegress team wins on season point margin; return points-per-marginal-win.
calibrate_replacement_levelSolve for the replacement_level that makes summed league WAR hit a target.
career_rapm_targetAge-adjusted, time-weighted career RAPM over seasons: the box prior's training target.
current_impact_priorThe box prior v2 as of a date: features from the box lines of the window_days before it.
darko_forecast_accuracyHoldout forecast accuracy: for each transition, forecast N+1 from history <= N vs actual.
decay_weightsExponential time-decay sample weights w = 0.5 ** (days_ago / half_life).
expected_possessionsExpected possessions for a matchup (Pythagorean-tempo blend).
external_validityOracle 5: correlate a model's ratings against a published external metric.
fit_aging_curveFit the aging curve by the delta method: avg YoY rating change grouped by starting age.
fit_reml_prior_ridgeRidge toward prior_mean with one penalty for offense and one for defense, chosen by REML.
game_excitementHow exciting one game was, with no direction: the game excitement index, lead changes and the biggest swing.
game_linesPer ESPN game: opening and closing spread, total and moneylines, the no-vig market WP, and the result.
game_minutesMinutes played in a game of periods periods: the league's regulation length plus five per overtime.
game_page_framesEverything the Game on Paper basketball game page needs, from one espn_<league>_pbp payload.
game_page_tablesEvery game-page table for one game, from its basketball pbp / team box / player box frames.
game_regulation_periodsRegulation periods of one game: 2 (halves) or 4 (quarters).
get_constantsReturn the LeagueConstants for a league_id.
get_shrinkage_kShooter-talent shrinkage k for a league.
home_priorPregame home win probability for the in-game model, and where it came from.
in_game_featuresPer-play in-game win-probability features from a load_nba_pbp frame.
league_pbp_functionsThe ESPN fetch and parse pair for one league: (espn_<league>_pbp, helper_<league>_pbp).
luck_adjusted_responseAttach a per-possession la_points expected-points response.
nba_adj_rapmOne-shot prior-informed RAPM over a possession frame -> per-player ratings.
nba_aging_curveLoad the bundled per-age value-multiplier curve.
nba_bpmFaithful BPM 2.0 per player, at season or single-game granularity.
nba_career_trajectoryAge-adjust player-season values with the bundled aging curve.
nba_current_impactCurrent impact: each player's expected offense / defense impact per 100 as of a date.
nba_current_impact_contextAppend <m>_n, <m>_rank and <m>_pct to a current_impact table, within each as_of date.
nba_darkoProject each player's next-season rating via a per-player Kalman filter + aging curve.
nba_decay_rapmTime-decay RAPM: ridge weighted by 0.5 ** (days_ago / half_life_days).
nba_draft_modelProject each draft pick's NBA career value from where he was picked.
nba_expected_turnoversExpected TOV + residual ball-security skill from Synergy play-type mix.
nba_four_factor_rapmFour-factor RAPM: four independent ridge fits (efg/ftr/orbd/tov) on the SAME design.
nba_in_game_win_probPer-play home win probability from the bundled in-game model.
nba_la_rapmLuck-adjusted RAPM: ridge on an expected-points response (high-variance shooting regressed).
nba_matchup_drapmMatchup-based defensive RAPM (offense-quality-controlled).
nba_multiseason_rapmMulti-season RAPM: one plain ridge fit over the possessions of several seasons pooled.
nba_player_impact_contextAppend <m>_n, <m>_rank and <m>_pct to a player_impact table.
nba_player_impact_league_averagesThe league-average rows of a player_impact table, one block per season type.
nba_player_stats_advanced_contextReplace player_stats_advanced's API ranks of the rated measures with gated producer ranks.
nba_predict_gamesVectorized pregame predictions for a schedule of games.
nba_reml_rapmSeason impact rating: RAPM shrunk toward a box prior, at a fixed league penalty or one chosen by REML.
nba_rookie_projectionProject each pick's rookie and second-season value and rookie minutes from his pick.
nba_spmApply fitted SPM coefficients to per-100 box features -> OSPM/DSPM/SPM.
nba_team_ratingsOpponent-adjusted team ratings (AdjOffRtg/AdjDefRtg/AdjNet/AdjPace), as-of-date aware.
nba_warPoints-above-replacement -> wins for each player.
ot_adjusted_secondsTag overtime rows and give them the overtime period clock as their seconds remaining.
player_game_ratesTrue-shooting and usage for every boxed player of one game.
player_propsPer ESPN game x athlete x stat: the closing player-prop line, its prices and the no-vig over probability.
player_second_chance_boxSecond-chance field goals, free throws and points per shooter, and assists per passer, per game.
player_second_chance_seasonSecond-chance totals per player, team, season and season type, summed from player_second_chance_box.
predict_marginExpected home-minus-away margin from two adjusted net ratings.
predict_totalExpected total points from adjusted ratings and paces.
raw_game_efficiencyPer-team, per-game possessions + raw offensive/defensive rating.
render_reportRender a ValidationReport as a human-readable markdown validation card.
run_current_impactOne pass of the filter over possessions, snapshotting before each as_of date.
score_win_probPer-play home win probability, its play-to-play delta, and the prior, for one game.
season_game_excitementEvery game's excitement index, lead changes and biggest swing, ranked within its season.
season_gramThe SeasonGram of a possession frame (rows with a full lineup).
second_chance_playsThe plays with their possession, chance number and second-chance flags (works mid-game).
shot_coordinatesShot locations in the court frame the Game on Paper hex chart uses.
team_game_ratesFour factors, possessions, ratings and pace for both teams of one game.
team_second_chance_boxSecond-chance possessions, field goals, free throws, points and assists per team and game (works mid-game).
team_second_chance_seasonSecond-chance totals per team, season and season type, summed from team_second_chance_box.
train_box_priorPossession-weighted ridge of the career target on the box-prior features, cross-fit by player.
train_spmRidge-fit box features onto o_rapm and d_rapm (two regressions).
validate_modelRun the selected oracles and assemble a ValidationReport.
walk_forwardOracle 6: time-ordered "predict tomorrow" retrodiction.
win_prob_from_marginHome win probability from an expected margin (normal-CDF closed form).
wp_variantsTwo extra per-play home WP columns for one game: naive (prior 0.5) and market-anchored.

Analytics​

FunctionSummary
add_ctg_shot_zonesAppend CTG's shot-location zone (ctg_shot_zone) to an enhanced PBP frame.
add_play_contextBuild possessions and enrich them with the full CTG play-context surface.
add_possession_flagsAppend seconds_to_first_shot, is_transition and is_garbage_time to possessions.
add_shot_make_probAdd each field-goal attempt's make chance from the bundled location model.
add_start_type_detailAppend the full pbpstats start-type taxonomy to a possession frame.
add_transitionFlag possessions that started in transition, and time their initial play.
add_two_for_one_flagsAppend the 2-for-1 choice and its end-of-period outcome to possessions (BB-D44).
box_featuresAggregate per-player per-100-possession box features over a set of games.
build_play_context_shotsBuild the per-shot frame carrying CTG's play context.
build_possession_shootingBuild the per-shooter companion frame from an enhanced play-by-play DataFrame.
clutch_deltaClutch net-rating delta vs a full-game baseline, per (season, team_id).
flag_garbage_timeFlag CTG garbage time (excluded from CTG stats by default).
flag_heave_possessionsFlag CTG's "projected heave possessions" (excluded from CTG stats by default).
hoopshype_salariesLeague-wide NBA player salaries from HoopsHype.
lineup_play_contextRoll possessions up into a per-5-man-lineup Play-Context table.
load_shot_make_modelLoad the bundled shot-make booster for league_id (only "00", the NBA, has one).
make_prob_by_contextMarginal FG% tables by defender distance and by shot clock.
make_prob_jointIndependence-combined defender x shot-clock make probability.
nba_availabilityProject games-available % for a season (or seasons) from career GP history.
nba_box_eventsEach player's box counts per stats.nba.com action, the input of the stint and split box.
nba_box_logsFetch per-player and per-team game logs for a season (bulk, one call each).
nba_coach_careersHead-coach careers over seasons: nba_coach_seasons summed per coach, rates recomputed.
nba_coach_seasonsHead-coach seasons: W-L, ratings and four factors over the games each coach was on the bench for.
nba_cup_simNBA Cup sim as of a date: odds to win the group, take a wild card, reach each round and win.
nba_cup_standingsNBA Cup Group Play standings as of a date, with the official tiebreak order and wild cards.
nba_draft_lottery_oddsExact draft-lottery odds by pre-lottery slot: the chance each slot gets each pick.
nba_epv_lineup_gamesPer five-man unit and game: the EPV added with the unit on the floor.
nba_epv_player_gamesPer player and game: EPV added on the player's own actions and on-court EPV +/-.
nba_epv_playsEPV and EPV added on every play-by-play event inside a possession.
nba_epv_team_gamesPer team and game: EPV added on offense and allowed on defense.
nba_foul_drawingExpected FTA + residual foul-drawing skill from Synergy play-type mix.
nba_game_flowGame flow per team and game: runs, droughts, kills, lead changes, time leading and game control.
nba_game_lineups_usedThe lineups used: per five-man unit and game, minutes, possessions, +/- and ratings.
nba_game_on_offIn-game on/off: per player and game, the team with him on the floor and the rest of its game.
nba_game_player_box_splitsPlayer box by game, period and garbage time: minutes and counts from the play-by-play.
nba_game_player_impactThe game impact box: per player and game, minutes, on-court possessions, +/- and ratings.
nba_game_stintsGame stints: per player and game, every stretch on the floor with its clock, points and possessions.
nba_game_storyHow the winner won it, for one or many basketball games: edges in points, the moment, periods, runs, performers.
nba_game_unitsIn-game units: per 1- to 5-man set of teammates and game, minutes, ratings, four factors and shot zones.
nba_impact_rowsMap the stats.nba.com releases onto the game-impact row frame.
nba_l2mFetch and parse an NBA Last Two Minute report from official.nba.com.
nba_l2m_gamesFetch the list of games with Last Two Minute reports for an NBA season.
nba_lineup_count_rowsMap nba_stats_possessions rows onto the lineup-seasons count frame.
nba_lineup_seasonsLineup seasons: 2-, 3- and 5-man units with possessions, minutes, ratings and four factors.
nba_neutral_site_gamesThe curated NBA / WNBA neutral-site games: played abroad, or NBA Cup knockout games in Las Vegas.
nba_official_seasonsNBA official season profiles: games, fouls and FTA per game, pace and home splits.
nba_play_contextFetch one game and return its possessions with the full CTG play-context surface.
nba_play_style_featuresThe play-style clustering features, one row per qualifying player- or team-season.
nba_player_agesPer-player age for a season (bulk), for the DARKO aging curve.
nba_player_factor_rapmPlayer RAPM split into Dean Oliver's four factors, offense and defense, per player-season.
nba_player_game_expected_boxNBA points, rebounds and assists per player-game against his season, per minute and usage-adjusted.
nba_player_identityHuman-readable identity for every player in a season's box logs.
nba_player_on_offPlayer on/off: each player's team with him on the floor and without him, per team-season.
nba_player_play_stylesOffensive and defensive play-style archetypes per player-season (BB-D20).
nba_player_positionsFetch league-wide listed positions for a season as numeric 1-5.
nba_player_propsPer-player expected prop lines + team pace projection for a matchup.
nba_player_season_box_ratesNBA per-36 points, rebounds and assists per player-season, ranked, with the season usage.
nba_player_shot_zonesSeason shot profile by zone per player: rim / mid / corner 3 / above-the-break 3.
nba_player_warWAR and VORP per player-season, from our BPM, RAPM and BOBAN (regular season).
nba_player_wowyWOWY pairs: a team's season with two teammates together, apart and both off, per pair.
nba_playoff_seriesEvery postseason game keyed to its series, with the series score after it.
nba_playoff_series_playersEach player's totals and per-game line in each playoff series, against the player's regular season.
nba_playoff_series_teamsEach team's record and box totals in each playoff series: the sum of its game boxes.
nba_playtype_ratingsSeason play-type-adjusted offensive/defensive team ratings.
nba_possession_rate_rowsMap nba_stats_possessions rows onto the team-season-rates possession frame.
nba_pregame_projectionsRated pregame projection for every ESPN game of an NBA / WNBA season, as of each game's date.
nba_rated_priorsRated pregame home win probability for every ESPN game of a season, as of each game's date.
nba_ratings_panelPlayer-ratings-through-date long panel: one row per (player_id, date).
nba_raw_store_season_frameRead a committed SEASON-LEVEL capture from the raw store, parsed to a frame.
nba_referee_assignmentsFetch and parse NBA referee assignments for a given date from official.nba.com.
nba_score_rowsMap the stats.nba.com play-by-play onto the game-flow score rows.
nba_season_simSeason sim as of a date: projected W-L, division, seed, play-in, playoff and lottery odds.
nba_season_standingsStandings with the league's tiebreakers from completed regular-season games.
nba_shot_valueOne-call shot-value spine: fetch, score, and run all five models.
nba_shot_value_lineupsScored per-shot frame for one 5-man lineup (shotchartlineupdetail).
nba_situation_rowsMap the stats.nba.com releases onto the situational-splits possession frame.
nba_situational_lineupFive-man unit splits by situation: the team splits over the possessions each unit started.
nba_situational_playerPlayer on-floor splits by situation: the team splits over the possessions each player started on the floor.
nba_situational_teamTeam splits by situation: clutch, period, half, garbage time, score, venue, opponent, play type, chance.
nba_situational_team_gamesTeam splits by situation, one game at a time: nba_situational_team per game.
nba_stint_rowsMap the stats.nba.com releases onto the stint-row frame.
nba_team_clutchOpponent-agnostic clutch skill (shrunk clutch net-rating delta) per team.
nba_team_game_four_factorsPer team and game: the four factors in points against the season's league-average offense.
nba_team_game_possessionsPer team and game: the possession counts behind nba_team_season_rates.
nba_team_luckLuck and close-game record: Pythagorean expected wins vs actual wins, and close-game W-L.
nba_team_play_stylesDefensive play-style archetypes per team-season (BB-D20); team offense has none (see the module).
nba_team_season_flowGame flow per team and season, with ranks, percentiles and _n.
nba_team_season_ratesSeason team rates from possessions: ORtg/DRtg/net, pace and the four factors, with splits.
nba_team_shot_zonesSeason shot profile by zone per team, for and allowed: rim / mid / corner 3 / above-the-break 3.
nba_team_strengthTeam strength from possessions: adjusted ratings, SOS, SOV, pace and the four factors.
nba_tracking_drive_valueDrive value over expected + rim-pressure, per player-season.
nba_tracking_pass_valueExpected-assists / passer value: ast_oe per player-season.
nba_tracking_reb_oeRebounding-over-expected: reb_oe plus OREB/DREB splits, per player-season.
nba_tracking_rim_protect_valueRim-protection / shot-defend points-saved over expected, per player-season.
nba_tracking_shot_diet_valueCatch-&-shoot vs pull-up points-over-expected, per player-season.
nba_tracking_touch_valueTouch / possession-time value over expected, per player-season.
nbadraft_mock_draftThe current consensus mock draft from NBADraft.net.
player_play_contextPer-player offensive On/Off Play-Context table (CTG's On/Off page, offense half).
player_ratesPer-player per-minute rate stats from box logs, shrunk toward a tier prior in the NBA.
players_on_court_from_pbpReconstruct the 5-on-5 on-court lineup from pbp subs + boxscore starters.
players_on_court_from_quarter_boxscoresReconstruct the 5-on-5 on-court lineup, seeding each period exactly where possible.
players_on_court_from_rotationReconstruct the 5-on-5 on-court lineup via the rotation (gamerotation) algorithm.
prob_overProbability a stat finishes strictly above line.
project_player_lineProject a player's expected counting line from per-minute rates.
prop_distributionDistribution family + parameters for a projected stat mean.
ratings_as_ofFit model on every possession dated on or before asof and return ratings.
rotowire_injuriesThe current NBA injury report from RotoWire.
score_shot_xpointsScore each shot with its make chance and expected points.
shooter_talentRegressed shooter true-talent: make%-above-expected, shrunk to the mean.
shot_selection_qualityPlayer shot-selection quality: mean expected value vs the league mean.
shrink_clutchEmpirical-Bayes / James-Stein shrinkage of clutch_delta toward zero.
spotrac_team_capTeam salary-cap allocations from Spotrac.
starters_on_court_countsCount, per possession, how many starters are on the floor across BOTH teams.
team_pace_projectionExpected possessions for a matchup (Phase-3 expected_possessions).
team_play_contextRoll possessions up into CTG's team Play-Context table.
two_for_one_summaryHow often teams go 2-for-1, how often it pays the extra possession, and clock-matched net points.
xpoints_baselineLeague-average FG% baseline table keyed by the three shot-zone columns.
zone_value_mapPer-player per-zone value map: points and expected points per shot.

Dates and seasons​

FunctionSummary
year_to_seasonConvert a season START year (e.g. 2023) to the NBA's hyphenated label

IDs and crosswalks​

FunctionSummary
nba_crosswalks_from_archiveBuild the NBA team, schedule and player crosswalks for a past season, offline.
nba_player_crosswalkBuild the NBA cross-source player crosswalk (ESPN / NBA Stats / Fox).
nba_schedule_crosswalkBuild the NBA cross-source schedule crosswalk (ESPN / NBA Stats / Fox).
nba_team_crosswalkBuild the NBA cross-source team crosswalk (ESPN / NBA Stats / Fox).