Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ from configure import base_url
|
|
21 |
import shinyswatch
|
22 |
|
23 |
from datetime import datetime, timedelta
|
24 |
-
|
25 |
from api_scraper import MLB_Scrape
|
26 |
mlb_stats = MLB_Scrape()
|
27 |
|
@@ -374,7 +374,7 @@ def server(input,output,session):
|
|
374 |
ax.set_xlabel('Pitch')
|
375 |
ax.set_ylabel('Expected Run Value Added per 100 Pitches (xRV/100)')
|
376 |
|
377 |
-
axheader.text(s=f'{player_select_full} - {
|
378 |
axfooter1.text(.05, 0.2, "By: Thomas Nestico",ha='left', va='bottom',fontsize=12)
|
379 |
axfooter1.text(0.95, 0.2, "Data: MLB",ha='right', va='bottom',fontsize=12)
|
380 |
|
@@ -469,7 +469,7 @@ def server(input,output,session):
|
|
469 |
ax.set_xlabel('Takes')
|
470 |
ax.set_ylabel('Expected Run Value Added per 100 Pitches (xRV/100)')
|
471 |
|
472 |
-
axheader.text(s=f'{player_select_full} - {
|
473 |
axfooter1.text(.05, 0.2, "By: Thomas Nestico",ha='left', va='bottom',fontsize=12)
|
474 |
axfooter1.text(0.95, 0.2, "Data: MLB",ha='right', va='bottom',fontsize=12)
|
475 |
|
@@ -562,7 +562,7 @@ def server(input,output,session):
|
|
562 |
ax.set_xlabel('Swing')
|
563 |
ax.set_ylabel('Expected Run Value Added per 100 Pitches (xRV/100)')
|
564 |
|
565 |
-
axheader.text(s=f'{player_select_full} - {
|
566 |
axfooter1.text(.05, 0.2, "By: Thomas Nestico",ha='left', va='bottom',fontsize=12)
|
567 |
axfooter1.text(0.95, 0.2, "Data: MLB",ha='right', va='bottom',fontsize=12)
|
568 |
|
|
|
21 |
import shinyswatch
|
22 |
|
23 |
from datetime import datetime, timedelta
|
24 |
+
year_input = 2024
|
25 |
from api_scraper import MLB_Scrape
|
26 |
mlb_stats = MLB_Scrape()
|
27 |
|
|
|
374 |
ax.set_xlabel('Pitch')
|
375 |
ax.set_ylabel('Expected Run Value Added per 100 Pitches (xRV/100)')
|
376 |
|
377 |
+
axheader.text(s=f'{player_select_full} - {win} Pitch Rolling Swing Decision Expected Run Value Added\n{input.level_list()}-{year_input}',x=0.5,y=-0.5,ha='center',va='bottom',fontsize=14)
|
378 |
axfooter1.text(.05, 0.2, "By: Thomas Nestico",ha='left', va='bottom',fontsize=12)
|
379 |
axfooter1.text(0.95, 0.2, "Data: MLB",ha='right', va='bottom',fontsize=12)
|
380 |
|
|
|
469 |
ax.set_xlabel('Takes')
|
470 |
ax.set_ylabel('Expected Run Value Added per 100 Pitches (xRV/100)')
|
471 |
|
472 |
+
axheader.text(s=f'{player_select_full} - {win} Pitch Rolling In-Zone Awareness Expected Run Value Added\n{input.level_list()}-{year_input}'',x=0.5,y=-0.5,ha='center',va='bottom',fontsize=14)
|
473 |
axfooter1.text(.05, 0.2, "By: Thomas Nestico",ha='left', va='bottom',fontsize=12)
|
474 |
axfooter1.text(0.95, 0.2, "Data: MLB",ha='right', va='bottom',fontsize=12)
|
475 |
|
|
|
562 |
ax.set_xlabel('Swing')
|
563 |
ax.set_ylabel('Expected Run Value Added per 100 Pitches (xRV/100)')
|
564 |
|
565 |
+
axheader.text(s=f'{player_select_full} - {win} Pitch Rolling Out of Zone Awareness Expected Run Value Added\n{input.level_list()}-{year_input}'',x=0.5,y=-0.5,ha='center',va='bottom',fontsize=14)
|
566 |
axfooter1.text(.05, 0.2, "By: Thomas Nestico",ha='left', va='bottom',fontsize=12)
|
567 |
axfooter1.text(0.95, 0.2, "Data: MLB",ha='right', va='bottom',fontsize=12)
|
568 |
|