Visualizing Fourth Down

Our goal in this post is to make graphs with slider interactivity using python in order to examine how fourth down decisions change based on the number of yards to go. Here is the code for a pie chart that shows the breakdown of play type by yardage, using the matplotlib widget method:

And here is the code for a bar chart that shows what happened last year when teams went for it on fourth down:

Email: matsarj@gmail.com | Resume