{"id":34,"date":"2025-09-26T15:29:56","date_gmt":"2025-09-26T15:29:56","guid":{"rendered":"https:\/\/theroyalscode.com\/students\/l_smith\/?p=34"},"modified":"2025-09-26T15:29:56","modified_gmt":"2025-09-26T15:29:56","slug":"9-26-25-nfl-project-day-3","status":"publish","type":"post","link":"https:\/\/theroyalscode.com\/students\/l_smith\/2025\/09\/26\/9-26-25-nfl-project-day-3\/","title":{"rendered":"9\/26\/25 nfl project day 3"},"content":{"rendered":"\n<p>day 3 of this project and i got a lot more done then lest week since it was a 2 class day today so i got more done <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;print(\"\\n--- Play Breakdown ---\")\n        print(f\"Game ID: {play_details&#91;'game_id']}\")\n        print(f\"Play ID: {play_details&#91;'play_id']}\")\n        print(f\"Quarter: {play_details&#91;'qtr']}\")\n        print(f\"Down and Distance: {play_details&#91;'down']}&amp;{play_details&#91;'ydstogo']}\")\n        print(f\"Play Type: {play_details&#91;'play_type']}\")\n        print(f\"Play Description: {play_details&#91;'play_description']}\")\n        print(f\"Yard Line: {play_details&#91;'yardline_100']} yards from opponent's goal line\")\n        print(f\"Offensive Team: {play_details&#91;'posteam']}\")\n        print(f\"Defensive Team: {play_details&#91;'defteam']}\")\n        print(f\"Home Team: {play_details&#91;'home_team']}\")\n        print(f\"Away Team: {play_details&#91;'away_team']}\")\n\n        # Display player-specific stats for the play, if available\n        if play_details&#91;'pass'] == 1 and not pd.isna(play_details&#91;'passer_player_id']):\n            print(\"\\nPassing Details:\")\n            print(f\"  Passer: {play_details&#91;'passer_player_name']}\")\n            print(f\"  Receiver: {play_details&#91;'receiver_player_name']}\")\n            print(f\"  Passing Yards: {play_details&#91;'passing_yards']}\")\n            print(f\"  Touchdown Pass: {'Yes' if play_details&#91;'pass_touchdown'] == 1 else 'No'}\")\n        \n        elif play_details&#91;'rush'] == 1 and not pd.isna(play_details&#91;'rusher_player_id']):\n            print(\"\\nRushing Details:\")\n            print(f\"  Rusher: {play_details&#91;'rusher_player_name']}\")\n            print(f\"  Rushing Yards: {play_details&#91;'rushing_yards']}\")\n            print(f\"  Rushing Touchdown: {'Yes' if play_details&#91;'rush_touchdown'] == 1 else 'No'}\")\n        \n        # Display other analytical metrics\n        print(\"\\nAdvanced Analytics:\")\n        print(f\"  Expected Points Added (EPA): {play_details&#91;'epa']:.2f}\")\n        print(f\"  Win Probability Added (WPA): {play_details&#91;'wpa']:.4f}\")\n        print(f\"  Air Yards: {play_details&#91;'air_yards']}\")\n        print(f\"  Yards After Catch (YAC): {play_details&#91;'yac_yards']}\")\n] \n\n    else:\n        print(\"play not highlight play\")\n<\/code><\/pre>\n\n\n\n<p>this make sure if there is a highlight play that it will print the play details if  it wasn&#8217;t a big play its prints not a highlight play  <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"384\" src=\"https:\/\/theroyalscode.com\/students\/l_smith\/wp-content\/uploads\/2025\/09\/image-2-1024x384.png\" alt=\"\" class=\"wp-image-35\" srcset=\"https:\/\/theroyalscode.com\/students\/l_smith\/wp-content\/uploads\/2025\/09\/image-2-1024x384.png 1024w, https:\/\/theroyalscode.com\/students\/l_smith\/wp-content\/uploads\/2025\/09\/image-2-300x113.png 300w, https:\/\/theroyalscode.com\/students\/l_smith\/wp-content\/uploads\/2025\/09\/image-2-768x288.png 768w, https:\/\/theroyalscode.com\/students\/l_smith\/wp-content\/uploads\/2025\/09\/image-2-1536x576.png 1536w, https:\/\/theroyalscode.com\/students\/l_smith\/wp-content\/uploads\/2025\/09\/image-2.png 1858w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>this prints this highlight play in extra detail <\/p>\n\n\n\n<p>this is day 3 i&#8217;ll be back next week with more detall stay tooned for next weeks info <\/p>\n","protected":false},"excerpt":{"rendered":"<p>day 3 of this project and i got a lot more done then lest week since it was a 2 class day today so i got more done this make sure if there is a highlight play that it will print the play details if it wasn&#8217;t a big play its prints not a highlight [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-34","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/theroyalscode.com\/students\/l_smith\/wp-json\/wp\/v2\/posts\/34","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theroyalscode.com\/students\/l_smith\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/theroyalscode.com\/students\/l_smith\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/l_smith\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/l_smith\/wp-json\/wp\/v2\/comments?post=34"}],"version-history":[{"count":1,"href":"https:\/\/theroyalscode.com\/students\/l_smith\/wp-json\/wp\/v2\/posts\/34\/revisions"}],"predecessor-version":[{"id":36,"href":"https:\/\/theroyalscode.com\/students\/l_smith\/wp-json\/wp\/v2\/posts\/34\/revisions\/36"}],"wp:attachment":[{"href":"https:\/\/theroyalscode.com\/students\/l_smith\/wp-json\/wp\/v2\/media?parent=34"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/l_smith\/wp-json\/wp\/v2\/categories?post=34"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/theroyalscode.com\/students\/l_smith\/wp-json\/wp\/v2\/tags?post=34"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}