Update app.py
Browse files
app.py
CHANGED
|
@@ -768,9 +768,9 @@ def server(input, output, session):
|
|
| 768 |
{ "title": "New Pitch?", "field": "new_pitch", "width": 125, "headerFilter":"input" ,"frozen":False,},
|
| 769 |
{ "title": "Date", "field": "game_date", "width": 100, "headerFilter":"input" ,"frozen":True,},
|
| 770 |
{ "title": "Pitches", "field": "count", "width": 100 },
|
| 771 |
-
{ "title": "Pitch%", "field": "pitch_percent_formatted", "width": 100},
|
| 772 |
-
{ "title": "LHH%", "field": "lhh_percent_formatted", "width": 100},
|
| 773 |
-
{ "title": "RHH%", "field": "rhh_percent_formatted", "width": 100},
|
| 774 |
{ "title": "Velocity", "field": "start_speed_formatted", "width": 100,"formatter":"textarea" },
|
| 775 |
{ "title": "Max Velo", "field": "max_start_speed_formatted", "width": 100, "formatter":"textarea" },
|
| 776 |
{ "title": "iVB", "field": "ivb_formatted", "width": 100,"formatter":"textarea" },
|
|
@@ -782,6 +782,7 @@ def server(input, output, session):
|
|
| 782 |
]
|
| 783 |
|
| 784 |
|
|
|
|
| 785 |
df_merge = df_merge.filter(pl.col('count')>=int(input.pitches_daily_min()))
|
| 786 |
|
| 787 |
df_plot = df_merge.to_pandas()
|
|
|
|
| 768 |
{ "title": "New Pitch?", "field": "new_pitch", "width": 125, "headerFilter":"input" ,"frozen":False,},
|
| 769 |
{ "title": "Date", "field": "game_date", "width": 100, "headerFilter":"input" ,"frozen":True,},
|
| 770 |
{ "title": "Pitches", "field": "count", "width": 100 },
|
| 771 |
+
{ "title": "Pitch%", "field": "pitch_percent_formatted", "width": 100,"formatter":"textarea"},
|
| 772 |
+
{ "title": "LHH%", "field": "lhh_percent_formatted", "width": 100,"formatter":"textarea"},
|
| 773 |
+
{ "title": "RHH%", "field": "rhh_percent_formatted", "width": 100,"formatter":"textarea"},
|
| 774 |
{ "title": "Velocity", "field": "start_speed_formatted", "width": 100,"formatter":"textarea" },
|
| 775 |
{ "title": "Max Velo", "field": "max_start_speed_formatted", "width": 100, "formatter":"textarea" },
|
| 776 |
{ "title": "iVB", "field": "ivb_formatted", "width": 100,"formatter":"textarea" },
|
|
|
|
| 782 |
]
|
| 783 |
|
| 784 |
|
| 785 |
+
|
| 786 |
df_merge = df_merge.filter(pl.col('count')>=int(input.pitches_daily_min()))
|
| 787 |
|
| 788 |
df_plot = df_merge.to_pandas()
|