Skip to main content

NFL — additional Python functions — nflverse data releases: combine–nfl_draft

load_combine​

load_combine(return_as_pandas=False) -> 'pl.DataFrame'

Load NFL Combine information

Parameters

ParameterTypeDefaultDescription
return_as_pandasboolFalseIf True, returns a pandas dataframe. If False, returns a polars dataframe.

Returns

Polars dataframe containing NFL combine data available.

col_nametypedescription
seasonInt644 digit number indicating to which season(s) the specified timeframe belongs to.
draft_yearFloat64Year that player was drafted
draft_teamStringTeam that drafted player
draft_roundFloat64Round that player was drafted in
draft_ovrFloat64Overall draft pick selection. This can be a little bit patchy, since MFL does not report this number.
pfr_idStringPro-Football-Reference ID for player
cfb_idStringSports Reference (CFB) ID for player
player_nameStringFull name of player
posStringPosition as tracked by FP
schoolStringCollege of player
htStringHeight of player (feet and inches)
wtFloat64Weight of player (lbs)
fortyFloat64Player's 40 yard dash time at combine (seconds)
benchFloat64Reps benched by player at combine
verticalFloat64Player's vertical jump at combine (inches)
broad_jumpFloat64Player's broad jump at combine (inches)
coneFloat64Player's 3 cone drill time at combine (seconds)
shuttleFloat64Player's shuttle run time at combine (seconds)

Example

from sportsdataverse.nfl import load_nfl_combine
combine = load_nfl_combine()
combine.shape

# Filter by draft year and position

import polars as pl
qbs_2024 = (
load_nfl_combine()
.filter((pl.col("season") == 2024) & (pl.col("pos") == "QB"))
)

load_contracts​

load_contracts(return_as_pandas=False) -> 'pl.DataFrame'

Load NFL Historical contracts information

Parameters

ParameterTypeDefaultDescription
return_as_pandasboolFalseIf True, returns a pandas dataframe. If False, returns a polars dataframe.

Returns

Polars dataframe containing historical contracts available.

col_nametypedescription
playerStringPlayer name
positionStringPrimary position as reported by NFL.com
teamStringNFL team. Uses official abbreviations as per NFL.com
is_activeBooleanActive contract
year_signedInt64Year the contract was signed
yearsInt64Contract length
valueFloat64Total contract value
apyFloat64Average money per contract year
guaranteedFloat64Total guaranteed money
apy_cap_pctFloat64Average money per contract year as percentage of the team's salary cap at signing
inflated_valueFloat64Total contract value inflated to account for the rise of the salary cap
inflated_apyFloat64Average money per contract year inflated to account for the rise of the salary cap
inflated_guaranteedFloat64Total guaranteed money inflated to account for the rise of the salary cap
player_pageStringPlayer's OverTheCap url
otc_idInt64Over the Cap ID for player
gsis_idStringGame Stats and Info Service ID: the primary ID for play-by-play data.
date_of_birthString
heightStringOfficial height, in inches
weightStringOfficial weight, in pounds
collegeStringOfficial college (usually the last one attended)
draft_yearInt64Year that player was drafted
draft_roundInt64Round that player was drafted in
draft_overallInt64
draft_teamStringTeam that drafted player
colsFloat64Placeholder column retained in the contracts loader output schema; contains no meaningful data in this context.
season_historyFloat64List of structs, one per league year covered by the contract (year as a string, team, base_salary, prorated_bonus, option_bonus, roster_bonus, guaranteed_salary, cap_number, cap_percent, cash_paid, workout_bonus, per_game_roster_bonus, other_bonus), money in millions of dollars and a final 'Total' row per nflreadr.
contract_historyInt64List of structs, one per contract in the player's OverTheCap contract history (team, contract_type, status, year_signed, yrs, total, apy, guarantees, amount_earned, percent_earned, effective_apy), with money fields in millions of dollars.

Example

from sportsdataverse.nfl import load_nfl_contracts
contracts = load_nfl_contracts()
contracts.shape

# Pandas round-trip with sort by APY

contracts_pd = load_nfl_contracts(return_as_pandas=True)
contracts_pd.sort_values("apy", ascending=False).head()

load_depth_charts​

load_depth_charts(seasons: 'List[int]', return_as_pandas=False) -> 'pl.DataFrame'

Load NFL Depth Chart data for selected seasons

Parameters

ParameterTypeDefaultDescription
seasonslistUsed to define different seasons. 2001 is the earliest available season. None loads the current roster year (it turns on March 15), True every published season, and [] an empty frame (no request).
return_as_pandasboolFalseIf True, returns a pandas dataframe. If False, returns a polars dataframe.

Returns

Polars dataframe containing depth chart data available for the requested seasons. seasons=[] gives an empty frame with no columns; schema'd empty frames come with the dtype contract.

col_nametypedescription
seasonInt644 digit number indicating to which season(s) the specified timeframe belongs to.
club_codeStringThree-letter team abbreviation identifying the NFL club on the depth chart row.
weekInt64Season week.
game_typeStringThe most recent game type of that season that a player appeared on the roster.
depth_teamStringNumeric depth rank indicating whether the player is listed as the starter (1), backup (2), or further reserve on the depth chart.
last_nameStringLast name of player
first_nameStringFirst name of player
football_nameStringCommon player name (i.e. in most cases common_first_name last_name)
formationStringOffensive or defensive formation context in which the depth chart position applies (e.g., 'Shotgun', 'Nickel').
gsis_idStringGame Stats and Info Service ID: the primary ID for play-by-play data.
jersey_numberStringJersey number. Often useful for joins by name/team/jersey.
positionStringPrimary position as reported by NFL.com
elias_idStringElias Sports Bureau identifier for the player, used by the NFL for official statistical tracking.
depth_positionStringPositional grouping label used to place the player on the team's official depth chart (e.g., 'QB', 'WR1', 'ILB').
full_nameStringFull name as per NFL.com

Example

from sportsdataverse.nfl import load_nfl_depth_charts
depth = load_nfl_depth_charts(seasons=[2024])

# Multi-season range

depth = load_nfl_depth_charts(seasons=range(2020, 2025))

load_draft_picks​

load_draft_picks(return_as_pandas=False) -> 'pl.DataFrame'

Load NFL Draft picks information

Parameters

ParameterTypeDefaultDescription
return_as_pandasboolFalseIf True, returns a pandas dataframe. If False, returns a polars dataframe.

Returns

Polars dataframe containing NFL Draft picks data available.

col_nametypedescription
seasonInt644 digit number indicating to which season(s) the specified timeframe belongs to.
roundInt64Draft round
pickInt64Draft overall pick
teamStringNFL team. Uses official abbreviations as per NFL.com
gsis_idStringGame Stats and Info Service ID: the primary ID for play-by-play data.
pfr_player_idStringID from Pro Football Reference
cfb_player_idStringID from College Football Reference
pfr_player_nameStringPlayer's name as recorded by PFR
hofBooleanWhether player has been selected to the Pro Football Hall of Fame
positionStringPrimary position as reported by NFL.com
categoryStringBroader category of player positions
sideStringO for offense, D for defense, S for special teams
collegeStringOfficial college (usually the last one attended)
ageInt64Age as of last pipeline build, rounded to one decimal. Pipeline is built on a weekly basis.
toInt64Final season played in NFL
allproInt64Number of AP First Team All-Pro selections as recorded by PFR
probowlsInt64Number of Pro Bowls
seasons_startedInt64Number of seasons recorded as primary starter for position
w_avInt64Weighted Approximate Value
car_avBooleanCareer Approximate Value
dr_avInt64Draft Approximate Value
gamesInt64Games played in career
pass_completionsInt64Number of successful completions for a given game
pass_attemptsInt64Career pass attempts
pass_yardsInt64Number of yards gained on pass plays
pass_tdsInt64Career pass touchdowns thrown
pass_intsInt64Career pass interceptions thrown
rush_attsInt64Career rushing attempts
rush_yardsInt64The number of rushing yards gained
rush_tdsInt64Career rushing touchdowns
receptionsInt64The number of pass receptions. Lateral receptions officially don't count as reception.
rec_yardsInt64Career receiving yards
rec_tdsInt64Career receiving touchdowns
def_solo_tacklesInt64Career solo tackles
def_intsInt64Career interceptions
def_sacksFloat64Number of sacks form this player

Example

from sportsdataverse.nfl import load_nfl_draft_picks
picks = load_nfl_draft_picks()
picks.shape

# Filter to a single year and round

import polars as pl
r1_2024 = (
load_nfl_draft_picks()
.filter((pl.col("season") == 2024) & (pl.col("round") == 1))
)

load_espn_qbr​

load_espn_qbr(seasons: 'List[int]', summary_type: 'str' = 'season', return_as_pandas: 'bool' = False, *, source: 'str' = 'nflverse') -> 'pl.DataFrame'

Load ESPN Total QBR (Quarterback Rating) data going back to 2006.

Mirrors nflreadpy / nflreadr load_espn_qbr -- the lone nflreadpy dataset that previously had no sdv-py loader. ESPN publishes Total QBR only from 2006 onward, so 2006 is the earliest available season (unlike the 1999 floor on play-by-play). nflverse republishes ESPN's QBR through the espn_data release as two combined files (one per summary_type), each covering all seasons; this loader reads the requested file once and post-filters by season (the same access pattern as load_nfl_schedule).

Parameters

ParameterTypeDefaultDescription
seasonslistSeasons to return. 2006 is the earliest available season. None loads the current season, True every published season, and [] an empty frame (no request).
summary_typestr'season'Aggregation level. "season" (default) returns one row per quarterback-season; "week" returns one row per quarterback-game. Any other value raises ValueError.
return_as_pandasboolFalseIf True, returns a pandas dataframe. If False, returns a polars dataframe.
sourcestr'nflverse'Which QBR release to read. "nflverse" (the default, also accepts None) returns the nflverse espn_data release. "sportsdataverse" / "sdv" returns the SDV-native nfl_espn_qbr release (built by nfl-data from ESPN's QBR web endpoint -- the same source nflverse's espnscrapeR uses). Any other value raises ValueError.

Returns

Polars dataframe containing ESPN Total QBR for the requested seasons, summarized per summary_type. seasons=[] gives an empty frame with no columns; schema'd empty frames come with the dtype contract.

col_nametypedescription
seasonInt644 digit number indicating to which season(s) the specified timeframe belongs to.
season_typeStringREG or POST indicating if the timeframe belongs to regular or post season.
game_weekStringSeason week
team_abbStringAbbreviation of Team of Player
player_idStringPlayer ID (aka GSIS ID) as defined by nflreadr::load_rosters
name_shortStringShort name of player (First Initial, Last Name)
rankFloat64QBR Rank in specified timeframe
qbr_totalFloat64Adjusted Total QBR, which adjusts quarterback play on 0-100 scale adjusted for strength of opposing defenses played.
pts_addedFloat64Number of points contributed by a quarterback above the average level QB
qb_playsFloat64Total dropbacks for the quarterback (excludes handoffs)
epa_totalFloat64Total Expected Points Added by quarterback, calculated by ESPN Win Probability Model
passFloat64Binary indicator if the play was a pass play (sacks and scrambles included).
runFloat64Expected Points Added on run plays
exp_sackFloat64Expected EPA Added on Sacks
penaltyFloat64Binary indicator for whether or not a penalty occurred.
qbr_rawFloat64Raw total QBR, does not adjust for strength of opposing defenses played.
sackFloat64Binary indicator for if the play ended in a sack.
name_firstStringFirst Name of Quarterback
name_lastStringLast Name of Quarterback
name_displayStringFull Name of Quarterback
headshot_hrefStringLink to ESPN Headshot of Player
teamStringNFL team. Uses official abbreviations as per NFL.com
qualifiedBooleanTrue/False indicator of whether or not player meets minimum play requirement

Raises

ExceptionDescription
ValueErrorIf summary_type is not "season" / "week", or if source is not one of "nflverse", None, "sportsdataverse", or "sdv".
SeasonNotFoundErrorIf any requested season is before 2006.

Example

from sportsdataverse.nfl import load_nfl_espn_qbr
qbr = load_nfl_espn_qbr(seasons=[2024])
qbr.shape

# Week-level QBR

qbr_week = load_nfl_espn_qbr(seasons=[2024], summary_type="week")

# Multi-season range

qbr = load_nfl_espn_qbr(seasons=range(2020, 2025))

# Pandas round-trip

qbr_pd = load_nfl_espn_qbr(seasons=[2024], return_as_pandas=True)
qbr_pd[["season", "team_abb", "qbr_total"]].head()

load_ff_opportunity​

load_ff_opportunity(seasons: 'List[int]', stat_type: 'str' = 'weekly', model_version: 'str' = 'latest', return_as_pandas=False) -> 'pl.DataFrame'

Load NFL fantasy football opportunity data from ffverse/ffopportunity

Parameters

ParameterTypeDefaultDescription
seasonslistUsed to define different seasons. 2006 is the earliest available season. None loads the current season, True every published season, and [] an empty frame (no request).
stat_typestr'weekly'One of "weekly", "pbp_pass", "pbp_rush". Defaults to "weekly".
model_versionstr'latest'One of "latest", "v1.0.0". Defaults to "latest".
return_as_pandasboolFalseIf True, returns a pandas dataframe. If False, returns a polars dataframe.

Returns

Polars dataframe containing fantasy football opportunity data for the requested seasons. seasons=[] gives an empty frame with no columns; schema'd empty frames come with the dtype contract.

col_nametypedescription
seasonString4 digit number indicating to which season(s) the specified timeframe belongs to.
posteamStringString abbreviation for the team with possession.
weekFloat64Season week.
game_idStringTen digit identifier for NFL game.
player_idStringPlayer ID (aka GSIS ID) as defined by nflreadr::load_rosters
full_nameStringFull name as per NFL.com
positionStringPrimary position as reported by NFL.com
pass_attemptFloat64Binary indicator for if the play was a pass attempt (includes sacks).
rec_attemptFloat64Total number of targets for a given game
rush_attemptFloat64Binary indicator for if the play was a run.
pass_air_yardsFloat64Total air yards thrown for a given game
rec_air_yardsFloat64Total air yards on receiving attempts for a given game
pass_completionsFloat64Number of successful completions for a given game
receptionsFloat64The number of pass receptions. Lateral receptions officially don't count as reception.
pass_completions_expFloat64Expected number of pass_completions in this game (weekly) or on this play (pbp_rush/pbp_pass) given situation
receptions_expFloat64Expected number of receptions in this game (weekly) or on this play (pbp_rush/pbp_pass) given situation
pass_yards_gainedFloat64Total passing yards gained for a given game
rec_yards_gainedFloat64Total receiving yards gained for a given game
rush_yards_gainedFloat64Total rushing yards gained for a given game
pass_yards_gained_expFloat64Expected number of pass_yards_gained in this game (weekly) or on this play (pbp_rush/pbp_pass) given situation
rec_yards_gained_expFloat64Expected number of rec_yards_gained in this game (weekly) or on this play (pbp_rush/pbp_pass) given situation
rush_yards_gained_expFloat64Expected number of rush_yards_gained in this game (weekly) or on this play (pbp_rush/pbp_pass) given situation
pass_touchdownFloat64Binary indicator for if the play resulted in a passing TD.
rec_touchdownFloat64Total receiving touchdowns
rush_touchdownFloat64Binary indicator for if the play resulted in a rushing TD.
pass_touchdown_expFloat64Expected number of pass_touchdown in this game (weekly) or on this play (pbp_rush/pbp_pass) given situation
rec_touchdown_expFloat64Expected number of rec_touchdown in this game (weekly) or on this play (pbp_rush/pbp_pass) given situation
rush_touchdown_expFloat64Expected number of rush_touchdown in this game (weekly) or on this play (pbp_rush/pbp_pass) given situation
pass_two_point_convFloat64Number of successful passing two point conversions
rec_two_point_convFloat64Number of successful receiving two point conversions
rush_two_point_convFloat64Number of successful rushing two point conversions
pass_two_point_conv_expFloat64Expected number of pass_two_point_conv in this game (weekly) or on this play (pbp_rush/pbp_pass) given situation
rec_two_point_conv_expFloat64Expected number of rec_two_point_conv in this game (weekly) or on this play (pbp_rush/pbp_pass) given situation
rush_two_point_conv_expFloat64Expected number of rush_two_point_conv in this game (weekly) or on this play (pbp_rush/pbp_pass) given situation
pass_first_downFloat64Number of passing first downs
rec_first_downFloat64Number of receiving first downs
rush_first_downFloat64Number of rushing first downs
pass_first_down_expFloat64Expected number of pass_first_down in this game (weekly) or on this play (pbp_rush/pbp_pass) given situation
rec_first_down_expFloat64Expected number of rec_first_down in this game (weekly) or on this play (pbp_rush/pbp_pass) given situation
rush_first_down_expFloat64Expected number of rush_first_down in this game (weekly) or on this play (pbp_rush/pbp_pass) given situation
pass_interceptionFloat64Number of interceptions thrown
rec_interceptionFloat64Number of interceptions on targets
pass_interception_expFloat64Expected number of pass_interception in this game (weekly) or on this play (pbp_rush/pbp_pass) given situation
rec_interception_expFloat64Expected number of rec_interception in this game (weekly) or on this play (pbp_rush/pbp_pass) given situation
rec_fumble_lostFloat64Number of fumbles on receiving attempts
rush_fumble_lostFloat64Number of fumbles on rushing attempts
pass_fantasy_points_expFloat64Expected number of pass_fantasy_points in this game (weekly) or on this play (pbp_rush/pbp_pass) given situation
rec_fantasy_points_expFloat64Expected number of rec_fantasy_points in this game (weekly) or on this play (pbp_rush/pbp_pass) given situation
rush_fantasy_points_expFloat64Expected number of rush_fantasy_points in this game (weekly) or on this play (pbp_rush/pbp_pass) given situation
pass_fantasy_pointsFloat64Total fantasy points from passing, assuming 0.04 points per pass yard, 4 points per pass TD, -2 points per interception
rec_fantasy_pointsFloat64Total fantasy points from receiving, assuming PPR scoring
rush_fantasy_pointsFloat64Total fantasy points from rushing, assuming PPR scoring
total_yards_gainedFloat64Total scrimmage yards (sum of pass, rush, and receiving yards)
total_yards_gained_expFloat64Expected number of total_yards_gained in this game (weekly) or on this play (pbp_rush/pbp_pass) given situation
total_touchdownFloat64Total touchdowns (sum of pass, rush, and receiving touchdowns)
total_touchdown_expFloat64Expected number of total_touchdown in this game (weekly) or on this play (pbp_rush/pbp_pass) given situation
total_first_downFloat64Total first downs (sum of pass, rush, and receiving first downs)
total_first_down_expFloat64Expected number of total_first_down in this game (weekly) or on this play (pbp_rush/pbp_pass) given situation
total_fantasy_pointsFloat64Total fantasy points (sum of pass, rush, and receiving fantasy points)
total_fantasy_points_expFloat64Expected number of total_fantasy_points in this game (weekly) or on this play (pbp_rush/pbp_pass) given situation
pass_completions_diffFloat64Difference between actual and expected number of pass_completions - often interpreted as efficiency for a given play/game
receptions_diffFloat64Difference between actual and expected number of receptions - often interpreted as efficiency for a given play/game
pass_yards_gained_diffFloat64Difference between actual and expected number of pass_yards_gained - often interpreted as efficiency for a given play/game
rec_yards_gained_diffFloat64Difference between actual and expected number of rec_yards_gained - often interpreted as efficiency for a given play/game
rush_yards_gained_diffFloat64Difference between actual and expected number of rush_yards_gained - often interpreted as efficiency for a given play/game
pass_touchdown_diffFloat64Difference between actual and expected number of pass_touchdown - often interpreted as efficiency for a given play/game
rec_touchdown_diffFloat64Difference between actual and expected number of rec_touchdown - often interpreted as efficiency for a given play/game
rush_touchdown_diffFloat64Difference between actual and expected number of rush_touchdown - often interpreted as efficiency for a given play/game
pass_two_point_conv_diffFloat64Difference between actual and expected number of pass_two_point_conv - often interpreted as efficiency for a given play/game
rec_two_point_conv_diffFloat64Difference between actual and expected number of rec_two_point_conv - often interpreted as efficiency for a given play/game
rush_two_point_conv_diffFloat64Difference between actual and expected number of rush_two_point_conv - often interpreted as efficiency for a given play/game
pass_first_down_diffFloat64Difference between actual and expected number of pass_first_down - often interpreted as efficiency for a given play/game
rec_first_down_diffFloat64Difference between actual and expected number of rec_first_down - often interpreted as efficiency for a given play/game
rush_first_down_diffFloat64Difference between actual and expected number of rush_first_down - often interpreted as efficiency for a given play/game
pass_interception_diffFloat64Difference between actual and expected number of pass_interception - often interpreted as efficiency for a given play/game
rec_interception_diffFloat64Difference between actual and expected number of rec_interception - often interpreted as efficiency for a given play/game
pass_fantasy_points_diffFloat64Difference between actual and expected number of pass_fantasy_points - often interpreted as efficiency for a given play/game
rec_fantasy_points_diffFloat64Difference between actual and expected number of rec_fantasy_points - often interpreted as efficiency for a given play/game
rush_fantasy_points_diffFloat64Difference between actual and expected number of rush_fantasy_points - often interpreted as efficiency for a given play/game
total_yards_gained_diffFloat64Difference between actual and expected number of total_yards_gained - often interpreted as efficiency for a given play/game
total_touchdown_diffFloat64Difference between actual and expected number of total_touchdown - often interpreted as efficiency for a given play/game
total_first_down_diffFloat64Difference between actual and expected number of total_first_down - often interpreted as efficiency for a given play/game
total_fantasy_points_diffFloat64Difference between actual and expected number of total_fantasy_points - often interpreted as efficiency for a given play/game
pass_attempt_teamFloat64Team-level total pass_attempt for a game, summed across all plays/players for that team.
rec_attempt_teamFloat64Team-level total rec_attempt for a game, summed across all plays/players for that team.
rush_attempt_teamFloat64Team-level total rush_attempt for a game, summed across all plays/players for that team.
pass_air_yards_teamFloat64Team-level total pass_air_yards for a game, summed across all plays/players for that team.
rec_air_yards_teamFloat64Team-level total rec_air_yards for a game, summed across all plays/players for that team.
pass_completions_teamFloat64Team-level total pass_completions for a game, summed across all plays/players for that team.
receptions_teamFloat64Team-level total receptions for a game, summed across all plays/players for that team.
pass_completions_exp_teamFloat64Team-level total expected pass_completions_exp for a game, summed across all plays & players for that team.
receptions_exp_teamFloat64Team-level total expected receptions_exp for a game, summed across all plays & players for that team.
pass_yards_gained_teamFloat64Team-level total pass_yards_gained for a game, summed across all plays/players for that team.
rec_yards_gained_teamFloat64Team-level total rec_yards_gained for a game, summed across all plays/players for that team.
rush_yards_gained_teamFloat64Team-level total rush_yards_gained for a game, summed across all plays/players for that team.
pass_yards_gained_exp_teamFloat64Team-level total expected pass_yards_gained_exp for a game, summed across all plays & players for that team.
rec_yards_gained_exp_teamFloat64Team-level total expected rec_yards_gained_exp for a game, summed across all plays & players for that team.
rush_yards_gained_exp_teamFloat64Team-level total expected rush_yards_gained_exp for a game, summed across all plays & players for that team.
pass_touchdown_teamFloat64Team-level total pass_touchdown for a game, summed across all plays/players for that team.
rec_touchdown_teamFloat64Team-level total rec_touchdown for a game, summed across all plays/players for that team.
rush_touchdown_teamFloat64Team-level total rush_touchdown for a game, summed across all plays/players for that team.
pass_touchdown_exp_teamFloat64Team-level total expected pass_touchdown_exp for a game, summed across all plays & players for that team.
rec_touchdown_exp_teamFloat64Team-level total expected rec_touchdown_exp for a game, summed across all plays & players for that team.
rush_touchdown_exp_teamFloat64Team-level total expected rush_touchdown_exp for a game, summed across all plays & players for that team.
pass_two_point_conv_teamFloat64Team-level total pass_two_point_conv for a game, summed across all plays/players for that team.
rec_two_point_conv_teamFloat64Team-level total rec_two_point_conv for a game, summed across all plays/players for that team.
rush_two_point_conv_teamFloat64Team-level total rush_two_point_conv for a game, summed across all plays/players for that team.
pass_two_point_conv_exp_teamFloat64Team-level total expected pass_two_point_conv_exp for a game, summed across all plays & players for that team.
rec_two_point_conv_exp_teamFloat64Team-level total expected rec_two_point_conv_exp for a game, summed across all plays & players for that team.
rush_two_point_conv_exp_teamFloat64Team-level total expected rush_two_point_conv_exp for a game, summed across all plays & players for that team.
pass_first_down_teamFloat64Team-level total pass_first_down for a game, summed across all plays/players for that team.
rec_first_down_teamFloat64Team-level total rec_first_down for a game, summed across all plays/players for that team.
rush_first_down_teamFloat64Team-level total rush_first_down for a game, summed across all plays/players for that team.
pass_first_down_exp_teamFloat64Team-level total expected pass_first_down_exp for a game, summed across all plays & players for that team.
rec_first_down_exp_teamFloat64Team-level total expected rec_first_down_exp for a game, summed across all plays & players for that team.
rush_first_down_exp_teamFloat64Team-level total expected rush_first_down_exp for a game, summed across all plays & players for that team.
pass_interception_teamFloat64Team-level total pass_interception for a game, summed across all plays/players for that team.
rec_interception_teamFloat64Team-level total rec_interception for a game, summed across all plays/players for that team.
pass_interception_exp_teamFloat64Team-level total expected pass_interception_exp for a game, summed across all plays & players for that team.
rec_interception_exp_teamFloat64Team-level total expected rec_interception_exp for a game, summed across all plays & players for that team.
rec_fumble_lost_teamFloat64Team-level total rec_fumble_lost for a game, summed across all plays/players for that team.
rush_fumble_lost_teamFloat64Team-level total rush_fumble_lost for a game, summed across all plays/players for that team.
pass_fantasy_points_exp_teamFloat64Team-level total expected pass_fantasy_points_exp for a game, summed across all plays & players for that team.
rec_fantasy_points_exp_teamFloat64Team-level total expected rec_fantasy_points_exp for a game, summed across all plays & players for that team.
rush_fantasy_points_exp_teamFloat64Team-level total expected rush_fantasy_points_exp for a game, summed across all plays & players for that team.
pass_fantasy_points_teamFloat64Team-level total pass_fantasy_points for a game, summed across all plays/players for that team.
rec_fantasy_points_teamFloat64Team-level total rec_fantasy_points for a game, summed across all plays/players for that team.
rush_fantasy_points_teamFloat64Team-level total rush_fantasy_points for a game, summed across all plays/players for that team.
pass_completions_diff_teamFloat64Team-level difference between actual and expected number of pass_completions_diff for a game, summed across all plays/players for that team. Often interpreted as team-level efficiency.
receptions_diff_teamFloat64Team-level difference between actual and expected number of receptions_diff for a game, summed across all plays/players for that team. Often interpreted as team-level efficiency.
pass_yards_gained_diff_teamFloat64Team-level difference between actual and expected number of pass_yards_gained_diff for a game, summed across all plays/players for that team. Often interpreted as team-level efficiency.
rec_yards_gained_diff_teamFloat64Team-level difference between actual and expected number of rec_yards_gained_diff for a game, summed across all plays/players for that team. Often interpreted as team-level efficiency.
rush_yards_gained_diff_teamFloat64Team-level difference between actual and expected number of rush_yards_gained_diff for a game, summed across all plays/players for that team. Often interpreted as team-level efficiency.
pass_touchdown_diff_teamFloat64Team-level difference between actual and expected number of pass_touchdown_diff for a game, summed across all plays/players for that team. Often interpreted as team-level efficiency.
rec_touchdown_diff_teamFloat64Team-level difference between actual and expected number of rec_touchdown_diff for a game, summed across all plays/players for that team. Often interpreted as team-level efficiency.
rush_touchdown_diff_teamFloat64Team-level difference between actual and expected number of rush_touchdown_diff for a game, summed across all plays/players for that team. Often interpreted as team-level efficiency.
pass_two_point_conv_diff_teamFloat64Team-level difference between actual and expected number of pass_two_point_conv_diff for a game, summed across all plays/players for that team. Often interpreted as team-level efficiency.
rec_two_point_conv_diff_teamFloat64Team-level difference between actual and expected number of rec_two_point_conv_diff for a game, summed across all plays/players for that team. Often interpreted as team-level efficiency.
rush_two_point_conv_diff_teamFloat64Team-level difference between actual and expected number of rush_two_point_conv_diff for a game, summed across all plays/players for that team. Often interpreted as team-level efficiency.
pass_first_down_diff_teamFloat64Team-level difference between actual and expected number of pass_first_down_diff for a game, summed across all plays/players for that team. Often interpreted as team-level efficiency.
rec_first_down_diff_teamFloat64Team-level difference between actual and expected number of rec_first_down_diff for a game, summed across all plays/players for that team. Often interpreted as team-level efficiency.
rush_first_down_diff_teamFloat64Team-level difference between actual and expected number of rush_first_down_diff for a game, summed across all plays/players for that team. Often interpreted as team-level efficiency.
pass_interception_diff_teamFloat64Team-level difference between actual and expected number of pass_interception_diff for a game, summed across all plays/players for that team. Often interpreted as team-level efficiency.
rec_interception_diff_teamFloat64Team-level difference between actual and expected number of rec_interception_diff for a game, summed across all plays/players for that team. Often interpreted as team-level efficiency.
pass_fantasy_points_diff_teamFloat64Team-level difference between actual and expected number of pass_fantasy_points_diff for a game, summed across all plays/players for that team. Often interpreted as team-level efficiency.
rec_fantasy_points_diff_teamFloat64Team-level difference between actual and expected number of rec_fantasy_points_diff for a game, summed across all plays/players for that team. Often interpreted as team-level efficiency.
rush_fantasy_points_diff_teamFloat64Team-level difference between actual and expected number of rush_fantasy_points_diff for a game, summed across all plays/players for that team. Often interpreted as team-level efficiency.
total_yards_gained_teamFloat64Team-level total total_yards_gained for a game, summed across all plays/players for that team.
total_yards_gained_exp_teamFloat64Team-level total expected total_yards_gained_exp for a game, summed across all plays & players for that team.
total_yards_gained_diff_teamFloat64Team-level difference between actual and expected number of total_yards_gained_diff for a game, summed across all plays/players for that team. Often interpreted as team-level efficiency.
total_touchdown_teamFloat64Team-level total total_touchdown for a game, summed across all plays/players for that team.
total_touchdown_exp_teamFloat64Team-level total expected total_touchdown_exp for a game, summed across all plays & players for that team.
total_touchdown_diff_teamFloat64Team-level difference between actual and expected number of total_touchdown_diff for a game, summed across all plays/players for that team. Often interpreted as team-level efficiency.
total_first_down_teamFloat64Team-level total total_first_down for a game, summed across all plays/players for that team.
total_first_down_exp_teamFloat64Team-level total expected total_first_down_exp for a game, summed across all plays & players for that team.
total_first_down_diff_teamFloat64Team-level difference between actual and expected number of total_first_down_diff for a game, summed across all plays/players for that team. Often interpreted as team-level efficiency.
total_fantasy_points_teamFloat64Team-level total total_fantasy_points for a game, summed across all plays/players for that team.
total_fantasy_points_exp_teamFloat64Team-level total expected total_fantasy_points_exp for a game, summed across all plays & players for that team.
total_fantasy_points_diff_teamFloat64Team-level difference between actual and expected number of total_fantasy_points_diff for a game, summed across all plays/players for that team. Often interpreted as team-level efficiency.

Raises

ExceptionDescription
ValueErrorIf season is less than 2006, or if stat_type / model_version are not allowed values.

Example

from sportsdataverse.nfl import load_nfl_ff_opportunity
weekly = load_nfl_ff_opportunity(seasons=[2024])

# Pass play-by-play opportunity stats

pbp_pass = load_nfl_ff_opportunity(seasons=[2024], stat_type="pbp_pass")

# Rush play-by-play opportunity stats with pinned model version

pbp_rush = load_nfl_ff_opportunity(
seasons=[2024], stat_type="pbp_rush", model_version="v1.0.0"
)

load_ff_playerids​

load_ff_playerids(return_as_pandas=False) -> 'pl.DataFrame'

Load fantasy football player IDs from DynastyProcess.com

Parameters

ParameterTypeDefaultDescription
return_as_pandasboolFalseIf True, returns a pandas dataframe. If False, returns a polars dataframe.

Returns

Polars dataframe containing fantasy football player ID mappings across platforms.

col_nametypedescription
mfl_idStringMyFantasyLeague.com ID - this is the primary key for this table and is unique and complete. Usually an integer of 5 digits.
sportradar_idStringSportRadar ID - often also called sportsdata_id by other services. A UUID.
fantasypros_idStringFantasyPros.com ID - usually an integer of 5 digits.
gsis_idStringGame Stats and Info Service ID: the primary ID for play-by-play data.
pff_idStringPro Football Focus ID - usually an integer with between 3 and 6 digits.
sleeper_idStringSleeper ID - usually an integer with ~4 digits.
nfl_idStringNFL ID of player (this is used in Big Data Bowl Data)
espn_idStringESPN ID - usual format is an integer with ~5 digits
yahoo_idStringYahoo ID - usual format is an integer with ~5 digits
fleaflicker_idStringFleaflicker ID - usual format is an integer with ~4 digits. Fleaflicker API also has sportradar and that's generally preferred.
cbs_idStringCBS ID - usual format is an integer with ~ 7 digits.
pfr_idStringPro-Football-Reference ID for player
cfbref_idStringCollege Football Reference ID - usual format is firstname-lastname-integer
rotowire_idStringRotowire ID - usual format is an integer with ~four digits. Not to be confused with rotowire_id.
rotoworld_idStringRotoworld ID - usual format is an integer with ~four digits. Not to be confused with rotowire_id.
ktc_idStringKeepTradeCut ID - usual format is an integer with ~four digits.
stats_idStringStats ID - usual format is five digit integer
stats_global_idStringStats Global ID - usual format is a six digit integer
fantasy_data_idStringFantasyData ID - usual format five digit integer
swish_idStringPlayer ID for Swish Analytics
nameStringName, as reported by MFL but reordered into FirstName LastName instead of Last, First
merge_nameStringName but formatted for name joins via ffscrapr::dp_cleannames() - coerced to lowercase, stripped of punctuation and suffixes, and common substitutions performed.
positionStringPrimary position as reported by NFL.com
teamStringNFL team. Uses official abbreviations as per NFL.com
birthdateStringBirthdate
ageFloat64Age as of last pipeline build, rounded to one decimal. Pipeline is built on a weekly basis.
draft_yearInt64Year that player was drafted
draft_roundInt64Round that player was drafted in
draft_pickInt64Draft pick within round, i.e. 32nd pick of second round.
draft_ovrInt64Overall draft pick selection. This can be a little bit patchy, since MFL does not report this number.
twitter_usernameStringOfficial twitter handle, if known
heightInt64Official height, in inches
weightInt64Official weight, in pounds
collegeStringOfficial college (usually the last one attended)
db_seasonInt64Year of database build. Previous years may also be available via dynastyprocess.

Example

from sportsdataverse.nfl import load_nfl_ff_playerids
ids = load_nfl_ff_playerids()
ids.shape

# Filter to active QBs

import polars as pl
qbs = (
load_nfl_ff_playerids()
.filter((pl.col("position") == "QB") & (pl.col("status") == "ACT"))
)

load_ff_rankings​

load_ff_rankings(type: 'str' = 'draft', kind: 'str | None' = None, return_as_pandas=False) -> 'pl.DataFrame'

Load fantasy football rankings and projections

Parameters

ParameterTypeDefaultDescription
typestr'draft'Type of rankings to load. One of "draft" (current draft rankings), "week" (weekly rankings), or "all" (full historical rankings). Defaults to "draft". Kept for nflreadpy parity since its parameter is also called type; the forward-going preferred name is kind.
kindstrNonePreferred parameter name. Same semantics and allowed values as type. If both are supplied, kind wins. If neither is supplied, defaults to "draft" via type.
return_as_pandasboolFalseIf True, returns a pandas dataframe. If False, returns a polars dataframe.

Returns

Polars dataframe containing fantasy football rankings data.

col_nametypedescription
fp_pageStringThe relative url that the data was scraped from (add the prefix https://www.fantasypros.com/ to visit the page)
page_typeStringTwo word identifier separated by a dash identifying the type of fantasy ranking (best = bestball; dynasty; redraft) and what position it applies to
ecr_typeStringA two letter identifier combining the ranking type (b = bestball; d = dynasty; r = redraft) and position type (o = overall; p = positional; sf = superflex; rk = rookie)
playerStringPlayer name
idStringID of the player in the 'name' column.
posStringPosition as tracked by FP
teamStringNFL team. Uses official abbreviations as per NFL.com
ecrFloat64Average (mean) expert ranking for this player
sdFloat64Standard deviation of expert rankings for this player
bestInt64The highest ranking given for this player by any one expert
worstInt64The lowest ranking given for this player by any one expert
sportsdata_idStringID - also known as sportradar_id (they are equivalent!)
player_filenameStringbase URL for this player on fantasypros.com
yahoo_idStringYahoo ID - usual format is an integer with ~5 digits
cbs_idStringCBS ID - usual format is an integer with ~ 7 digits.
player_owned_avgFloat64The average percentage this player is rostered across ESPN and Yahoo
player_owned_espnStringThe percentage that this player is rostered in ESPN leagues
player_owned_yahooStringThe percentage that this player is rostered in Yahoo leagues
player_image_urlStringAn image of the player
player_square_image_urlStringAn square image of the player
rank_deltaInt64Change in ranks over a recent period
byeInt64NFL bye week
mergenameStringPlayer name after being cleaned by dp_cleannames - generally strips punctuation and suffixes as well as performing common name substitutions.
scrape_dateStringDate this dataframe was last updated
tmStringTeam ID as used on MyFantasyLeague.com

Raises

ExceptionDescription
ValueErrorIf the resolved value is not one of the allowed values.

Example

from sportsdataverse.nfl import load_nfl_ff_rankings
draft = load_nfl_ff_rankings(kind="draft")

# Weekly rankings

weekly = load_nfl_ff_rankings(kind="week")

# Full historical rankings (parquet)

history = load_nfl_ff_rankings(kind="all")

# nflreadpy-parity ``type=`` parameter (still supported)

draft = load_nfl_ff_rankings(type="draft")

load_ftn_charting​

load_ftn_charting(seasons: 'List[int]', return_as_pandas=False) -> 'pl.DataFrame'

Load NFL FTN charting data going back to 2022

Parameters

ParameterTypeDefaultDescription
seasonslistUsed to define different seasons. 2022 is the earliest available season. None loads the current season, True every published season, and [] an empty frame (no request).
return_as_pandasboolFalseIf True, returns a pandas dataframe. If False, returns a polars dataframe.

Returns

Polars dataframe containing FTN charting data available for the requested seasons. seasons=[] gives an empty frame with no columns; schema'd empty frames come with the dtype contract.

col_nametypedescription
ftn_game_idInt64FTN game ID
nflverse_game_idStringnflverse identifier for games. Format is season, week, away_team, home_team
seasonInt644 digit number indicating to which season(s) the specified timeframe belongs to.
weekInt64Season week.
ftn_play_idInt64FTN play ID
nflverse_play_idInt64Play ID used by nflverse, corresponds to GSIS play ID
starting_hashStringhash the ball was place(L = left, M = middle, R = right)
qb_locationStringpre-snap position of quarterback(U = under center, S = shotgun, P = pistol)
n_offense_backfieldInt64number of players in the backfield at the snap
n_defense_boxInt64Number of defenders positioned in the box at the snap, as charted by FTN Data.
is_no_huddleBooleanno huddle
is_motionBooleanmotion occurred on the play before or at the time of the snap
is_play_actionBooleanplay-action pass
is_screen_passBooleanscreen pass
is_rpoBooleanplay is considered run-pass option
is_trick_playBooleantrick play
is_qb_out_of_pocketBooleanquarterback moved out of pocket
is_interception_worthyBooleaninterception worthy pass
is_throw_awayBooleanquarterback thrown away
read_thrownStringread the ball was thrown
is_catchable_ballBooleancatchable ball(defined by throws that are generally on target that are not defended away)
is_contested_ballBooleancontested ball(defined by whether or not the receiver is facing physical contact at the time of the catch)
is_created_receptionBooleancreated reception(defined by a reception that only occurs due to an exceptional play by the receiver)
is_dropBooleanreceiver drop
is_qb_sneakBooleanquarterback sneak
n_blitzersInt64number of blitzers
n_pass_rushersInt64number of pass rushers
is_qb_fault_sackBooleansack that is the fault of the quarterback
date_pulledStringDate the data was retrieved from the FTN Data API by nflverse jobs

Raises

ExceptionDescription
ValueErrorIf season is less than 2022.

Example

from sportsdataverse.nfl import load_nfl_ftn_charting
charting = load_nfl_ftn_charting(seasons=[2024])

# Multi-season range

charting = load_nfl_ftn_charting(seasons=range(2022, 2025))

# Filter to plays with motion

import polars as pl
motion_plays = (
load_nfl_ftn_charting(seasons=[2024])
.filter(pl.col("is_motion") == 1)
)

load_injuries​

load_injuries(seasons: 'List[int]', return_as_pandas=False) -> 'pl.DataFrame'

Load NFL injuries data for selected seasons

Parameters

ParameterTypeDefaultDescription
seasonslistUsed to define different seasons. 2009 is the earliest available season. None loads the current season, True every published season, and [] an empty frame (no request).
return_as_pandasboolFalseIf True, returns a pandas dataframe. If False, returns a polars dataframe.

Returns

Polars dataframe containing injuries data available for the requested seasons. seasons=[] gives an empty frame with no columns; schema'd empty frames come with the dtype contract.

col_nametypedescription
seasonInt644 digit number indicating to which season(s) the specified timeframe belongs to.
game_typeStringThe most recent game type of that season that a player appeared on the roster.
teamStringNFL team. Uses official abbreviations as per NFL.com
weekInt64Season week.
gsis_idStringGame Stats and Info Service ID: the primary ID for play-by-play data.
positionStringPrimary position as reported by NFL.com
full_nameStringFull name as per NFL.com
first_nameStringFirst name of player
last_nameStringLast name of player
report_primary_injuryStringPrimary injury listed on official injury report
report_secondary_injuryStringSecondary injury listed on official injury report
report_statusStringPlayer's status for game on official injury report
practice_primary_injuryStringPrimary injury listed on practice injury report
practice_secondary_injuryStringSecondary injury listed on practice injury report
practice_statusStringPlayer's participation in practice
date_modifiedStringDate and time that injury information was updated

Example

from sportsdataverse.nfl import load_nfl_injuries
injuries = load_nfl_injuries(seasons=[2024])

# Multi-season range with team filter

import polars as pl
sf_injuries = (
load_nfl_injuries(seasons=range(2020, 2025))
.filter(pl.col("team") == "SF")
)

load_nextgen_stats​

load_nextgen_stats(seasons: 'List[int]', stat_type: 'str' = 'passing', return_as_pandas: 'bool' = False) -> 'pl.DataFrame'

Load NFL NextGen Stats data going back to 2016.

Unified loader that consolidates the per-stat-type NextGen Stats accessors. Mirrors the API surface of nflreadpy's load_nextgen_stats so downstream code can swap engines without changing call sites.

Parameters

ParameterTypeDefaultDescription
seasonslist[int]Seasons to filter to. The upstream parquet covers a single combined file per stat type — seasons is applied as a post-filter on the season column. None loads the current season, True every published season, and [] an empty frame (no request).
stat_typestr'passing'One of "passing", "rushing", "receiving". Defaults to "passing".
return_as_pandasboolFalseIf True, returns a pandas dataframe. If False, returns a polars dataframe.

Returns

Polars dataframe containing NextGen Stats data for the requested stat_type and seasons. seasons=[] gives an empty frame with no columns; schema'd empty frames come with the dtype contract.

col_nametypedescription
seasonInt644 digit number indicating to which season(s) the specified timeframe belongs to.
season_typeStringREG or POST indicating if the timeframe belongs to regular or post season.
weekInt64Season week.
player_display_nameStringFull name of the player
player_positionStringPosition of the player accordinng to NGS
team_abbrStringOfficial team abbreveation
avg_time_to_throwFloat64Average time elapsed from the time of snap to throw on every pass attempt for a passer (sacks excluded).
avg_completed_air_yardsFloat64Average air yards on completed passes
avg_intended_air_yardsFloat64Average air yards on all attempted passes
avg_air_yards_differentialFloat64Air Yards Differential is calculated by subtracting the passer's average Intended Air Yards from his average Completed Air Yards. This stat indicates if he is on average attempting deep passes than he on average completes.
aggressivenessFloat64Aggressiveness tracks the amount of passing attempts a quarterback makes that are into tight coverage, where there is a defender within 1 yard or less of the receiver at the time of completion or incompletion. AGG is shown as a % of attempts into tight windows over all passing attempts.
max_completed_air_distanceFloat64Air Distance is the amount of yards the ball has traveled on a pass, from the point of release to the point of reception (as the crow flies). Unlike Air Yards, Air Distance measures the actual distance the passer throws the ball.
avg_air_yards_to_sticksFloat64Air Yards to the Sticks shows the amount of Air Yards ahead or behind the first down marker on all attempts for a passer. The metric indicates if the passer is attempting his passes past the 1st down marker, or if he is relying on his skill position players to make yards after catch.
attemptsInt64The number of pass attempts as defined by the NFL.
pass_yardsInt64Number of yards gained on pass plays
pass_touchdownsInt64Number of touchdowns scored on pass plays
interceptionsInt64The number of interceptions thrown.
passer_ratingFloat64Overall NFL passer rating
completionsInt64The number of completed passes.
completion_percentageFloat64Percentage of completed passes
expected_completion_percentageFloat64Using a passer's Completion Probability on every play, determine what a passer's completion percentage is expected to be.
completion_percentage_above_expectationFloat64A passer's actual completion percentage compared to their Expected Completion Percentage.
avg_air_distanceFloat64A receiver's average depth of target
max_air_distanceFloat64A receiver's maximum depth of target
player_gsis_idStringUnique identifier of the player
player_first_nameStringPlayer's first name
player_last_nameStringPlayer's last name
player_jersey_numberInt64Player's jersey number
player_short_nameStringShort version of player's name

Raises

ExceptionDescription
ValueErrorIf stat_type is not one of the allowed values.
SeasonNotFoundErrorIf any season is less than 2016.

Example

from sportsdataverse.nfl import load_nfl_nextgen_stats
ngs_pass = load_nfl_nextgen_stats(seasons=[2024], stat_type="passing")

# Rushing NextGen stats

ngs_rush = load_nfl_nextgen_stats(seasons=[2024], stat_type="rushing")

# Receiving NextGen stats with a follow-up filter

import polars as pl
ngs_rec = (
load_nfl_nextgen_stats(seasons=[2024], stat_type="receiving")
.filter(pl.col("week") > 0)
)

# Pandas round-trip

ngs_pd = load_nfl_nextgen_stats(
seasons=[2024], stat_type="passing", return_as_pandas=True
)

load_nfl_combine​

load_nfl_combine(return_as_pandas=False) -> 'pl.DataFrame'

Load NFL Combine information

Parameters

ParameterTypeDefaultDescription
return_as_pandasboolFalseIf True, returns a pandas dataframe. If False, returns a polars dataframe.

Returns

Polars dataframe containing NFL combine data available.

col_nametypedescription
seasonInt644 digit number indicating to which season(s) the specified timeframe belongs to.
draft_yearFloat64Year that player was drafted
draft_teamStringTeam that drafted player
draft_roundFloat64Round that player was drafted in
draft_ovrFloat64Overall draft pick selection. This can be a little bit patchy, since MFL does not report this number.
pfr_idStringPro-Football-Reference ID for player
cfb_idStringSports Reference (CFB) ID for player
player_nameStringFull name of player
posStringPosition as tracked by FP
schoolStringCollege of player
htStringHeight of player (feet and inches)
wtFloat64Weight of player (lbs)
fortyFloat64Player's 40 yard dash time at combine (seconds)
benchFloat64Reps benched by player at combine
verticalFloat64Player's vertical jump at combine (inches)
broad_jumpFloat64Player's broad jump at combine (inches)
coneFloat64Player's 3 cone drill time at combine (seconds)
shuttleFloat64Player's shuttle run time at combine (seconds)

Example

from sportsdataverse.nfl import load_nfl_combine
combine = load_nfl_combine()
combine.shape

# Filter by draft year and position

import polars as pl
qbs_2024 = (
load_nfl_combine()
.filter((pl.col("season") == 2024) & (pl.col("pos") == "QB"))
)

load_nfl_contracts​

load_nfl_contracts(return_as_pandas=False) -> 'pl.DataFrame'

Load NFL Historical contracts information

Parameters

ParameterTypeDefaultDescription
return_as_pandasboolFalseIf True, returns a pandas dataframe. If False, returns a polars dataframe.

Returns

Polars dataframe containing historical contracts available.

col_nametypedescription
playerStringPlayer name
positionStringPrimary position as reported by NFL.com
teamStringNFL team. Uses official abbreviations as per NFL.com
is_activeBooleanActive contract
year_signedInt64Year the contract was signed
yearsInt64Contract length
valueFloat64Total contract value
apyFloat64Average money per contract year
guaranteedFloat64Total guaranteed money
apy_cap_pctFloat64Average money per contract year as percentage of the team's salary cap at signing
inflated_valueFloat64Total contract value inflated to account for the rise of the salary cap
inflated_apyFloat64Average money per contract year inflated to account for the rise of the salary cap
inflated_guaranteedFloat64Total guaranteed money inflated to account for the rise of the salary cap
player_pageStringPlayer's OverTheCap url
otc_idInt64Over the Cap ID for player
gsis_idStringGame Stats and Info Service ID: the primary ID for play-by-play data.
date_of_birthString
heightStringOfficial height, in inches
weightStringOfficial weight, in pounds
collegeStringOfficial college (usually the last one attended)
draft_yearInt64Year that player was drafted
draft_roundInt64Round that player was drafted in
draft_overallInt64
draft_teamStringTeam that drafted player
colsFloat64Number of contract columns returned in the contracts dataset (metadata artifact from the loader).
season_historyFloat64List of structs, one per league year covered by the contract (year as a string, team, base_salary, prorated_bonus, option_bonus, roster_bonus, guaranteed_salary, cap_number, cap_percent, cash_paid, workout_bonus, per_game_roster_bonus, other_bonus), money in millions of dollars and a final 'Total' row per nflreadr.
contract_historyInt64List of structs, one per contract in the player's OverTheCap contract history (team, contract_type, status, year_signed, yrs, total, apy, guarantees, amount_earned, percent_earned, effective_apy), with money fields in millions of dollars.

Example

from sportsdataverse.nfl import load_nfl_contracts
contracts = load_nfl_contracts()
contracts.shape

# Pandas round-trip with sort by APY

contracts_pd = load_nfl_contracts(return_as_pandas=True)
contracts_pd.sort_values("apy", ascending=False).head()

load_nfl_draft_picks​

load_nfl_draft_picks(return_as_pandas=False) -> 'pl.DataFrame'

Load NFL Draft picks information

Parameters

ParameterTypeDefaultDescription
return_as_pandasboolFalseIf True, returns a pandas dataframe. If False, returns a polars dataframe.

Returns

Polars dataframe containing NFL Draft picks data available.

col_nametypedescription
seasonInt644 digit number indicating to which season(s) the specified timeframe belongs to.
roundInt64Draft round
pickInt64Draft overall pick
teamStringNFL team. Uses official abbreviations as per NFL.com
gsis_idStringGame Stats and Info Service ID: the primary ID for play-by-play data.
pfr_player_idStringID from Pro Football Reference
cfb_player_idStringID from College Football Reference
pfr_player_nameStringPlayer's name as recorded by PFR
hofBooleanWhether player has been selected to the Pro Football Hall of Fame
positionStringPrimary position as reported by NFL.com
categoryStringBroader category of player positions
sideStringO for offense, D for defense, S for special teams
collegeStringOfficial college (usually the last one attended)
ageInt64Age as of last pipeline build, rounded to one decimal. Pipeline is built on a weekly basis.
toInt64Final season played in NFL
allproInt64Number of AP First Team All-Pro selections as recorded by PFR
probowlsInt64Number of Pro Bowls
seasons_startedInt64Number of seasons recorded as primary starter for position
w_avInt64Weighted Approximate Value
car_avBooleanCareer Approximate Value
dr_avInt64Draft Approximate Value
gamesInt64Games played in career
pass_completionsInt64Number of successful completions for a given game
pass_attemptsInt64Career pass attempts
pass_yardsInt64Number of yards gained on pass plays
pass_tdsInt64Career pass touchdowns thrown
pass_intsInt64Career pass interceptions thrown
rush_attsInt64Career rushing attempts
rush_yardsInt64The number of rushing yards gained
rush_tdsInt64Career rushing touchdowns
receptionsInt64The number of pass receptions. Lateral receptions officially don't count as reception.
rec_yardsInt64Career receiving yards
rec_tdsInt64Career receiving touchdowns
def_solo_tacklesInt64Career solo tackles
def_intsInt64Career interceptions
def_sacksFloat64Number of sacks form this player

Example

from sportsdataverse.nfl import load_nfl_draft_picks
picks = load_nfl_draft_picks()
picks.shape

# Filter to a single year and round

import polars as pl
r1_2024 = (
load_nfl_draft_picks()
.filter((pl.col("season") == 2024) & (pl.col("round") == 1))
)