Function: parse_pff_report()
parse_pff_report(
raw,section?):Row[] |Tables
Defined in: src/parsers/pff_api.ts:203
Parse a /v1 facet / singleton / matrix envelope.
- one flat report (
{passing_summary: [rows]}) -> tidy rows; - a matrix report ->
{ defenders, receivers, versus }; - a multi-key singleton (
/v1/teams) ->{ <key>: rows }over every list key; - empty / malformed ->
[].
Parameters
raw
any
section?
string
One table: a key of the dict above, or a single report's own
key (sdv-py's report). Unknown -> an error listing the valid names.
Returns
Row[] | Tables