A quarterback is a football player whose job is primarily to throw the ball. In data analysis, quarterbacks provide a clear group to filter before comparing passing performance. section 2.8.2
Analyze quarterback performance as an input–process–output task:
- Input: read the NFL offensive statistics CSV file. section 2.8.2
- Process: keep rows whose position is QB and sum passing yards for each player. section 2.8.2
- Output: sort the totals from highest to lowest and print the players. section 2.8.2
Ranking passing yards
A resulting ranking lists Patrick Mahomes with 16,132 passing yards, followed by Tom Brady with 15,876 and Aaron Rodgers with 13,852. A revised condition can exclude Tom Brady before printing.
