liveBook · Manning

Passing yards

As explained in Learn AI-Assisted Python Programming, Second Edition

The total distance in yards gained by an American football quarterback's completed forward passes.

Passing yards measure the total distance gained through a quarterback’s passes. They provide a practical way to compare quarterbacks over a defined period. section 2.8.2

A simple passing-yards analysis follows three steps:

  • Input: read the NFL offensive statistics CSV file. section 2.8.2
  • Process: keep players whose position is QB and sum their passing-yard totals. section 2.8.2
  • Output: sort quarterbacks by total passing yards in descending order. section 2.8.2

Example ranking

A resulting ranking lists Patrick Mahomes with 16,132 passing yards, Tom Brady with 15,876, Aaron Rodgers with 13,852, Josh Allen with 13,758, and Derek Carr with 13,271.

How Learn AI-Assisted Python Programming, Second Edition covers it

How deep it goes
Demonstrates filtering, summing, and sorting, but stops short of discussing football rules or metric limitations.
Examples
Uses an NFL statistics CSV, a Python script, and a ranked output of quarterback totals.
What it assumes
Starts football context from zero but assumes access to a structured NFL statistics dataset.
What you can do after
Apply it via Python and CSV processing to rank quarterbacks by accumulated passing yards.
How it connects
Connects passing yards with quarterbacks, player position, CSV data, Python, and data processing.

This explainer was generated by Manning's knowledge graph from the text of Learn AI-Assisted Python Programming, Second Edition. The section links point to the parts of the book it draws on.