Update app.py
Browse files
app.py
CHANGED
@@ -429,6 +429,7 @@ def server(input, output, session):
|
|
429 |
|
430 |
|
431 |
df_spring_group = df_spring_stuff.group_by(['pitcher_id', 'pitcher_name', 'pitch_type']).agg([
|
|
|
432 |
pl.col('start_speed').count().alias('count'),
|
433 |
pl.col('start_speed').mean().alias('start_speed'),
|
434 |
pl.col('start_speed').max().alias('max_start_speed'),
|
@@ -563,7 +564,8 @@ def server(input, output, session):
|
|
563 |
|
564 |
columns = [
|
565 |
{ "title": "Pitcher Name", "field": "pitcher_name", "width": 250, "headerFilter":"input" ,"frozen":True,},
|
566 |
-
{ "title": "Team", "field": "pitcher_team", "width": 100, "headerFilter":"input" ,"frozen":True,},
|
|
|
567 |
{ "title": "Pitch Type", "field": "pitch_type", "width": 125, "headerFilter":"input" ,"frozen":True,},
|
568 |
{ "title": "New Pitch?", "field": "new_pitch", "width": 125, "headerFilter":"input" ,"frozen":False,},
|
569 |
{ "title": "Pitches", "field": "count", "width": 100 },
|
|
|
429 |
|
430 |
|
431 |
df_spring_group = df_spring_stuff.group_by(['pitcher_id', 'pitcher_name', 'pitch_type']).agg([
|
432 |
+
pl.col('game_date').max().alias('last_pitched'),
|
433 |
pl.col('start_speed').count().alias('count'),
|
434 |
pl.col('start_speed').mean().alias('start_speed'),
|
435 |
pl.col('start_speed').max().alias('max_start_speed'),
|
|
|
564 |
|
565 |
columns = [
|
566 |
{ "title": "Pitcher Name", "field": "pitcher_name", "width": 250, "headerFilter":"input" ,"frozen":True,},
|
567 |
+
{ "title": "Team", "field": "pitcher_team", "width": 100, "headerFilter":"input" ,"frozen":True,},
|
568 |
+
{ "title": "last_pitched", "field": "last_pitched", "width": 100, "headerFilter":"input" ,"frozen":True,},
|
569 |
{ "title": "Pitch Type", "field": "pitch_type", "width": 125, "headerFilter":"input" ,"frozen":True,},
|
570 |
{ "title": "New Pitch?", "field": "new_pitch", "width": 125, "headerFilter":"input" ,"frozen":False,},
|
571 |
{ "title": "Pitches", "field": "count", "width": 100 },
|