Skip to main content

Function: parse_pff_player_detail()

parse_pff_player_detail(raw, section?): Row[]

Defined in: src/parsers/pff_api.ts:254

Parse a /v1/player/... detail envelope ({slug: {subject, week_totals, weeks}}) into one row per week, or with section: "career" (sdv-py's career=True) one row per season. The nested game object becomes game_* columns; player_id / league_id / season are filled from subject when a row lacks them.

Parameters​

raw​

any

section?​

string

"weeks" (default) or "career".

Returns​

Row[]