Update app.py
Browse files
app.py
CHANGED
|
@@ -495,7 +495,7 @@ def server(input, output, session):
|
|
| 495 |
|
| 496 |
|
| 497 |
|
| 498 |
-
batter_summary_filter = batter_summary.filter((pl.col('pa') >=
|
| 499 |
stat_list = batter_summary.columns[2:]
|
| 500 |
batter_summary_filter_pd = batter_summary_filter.to_pandas()
|
| 501 |
new_player_metrics = batter_summary.filter(pl.col('batter_id') == batter_id)[['batter_id'] + stat_list]
|
|
|
|
| 495 |
|
| 496 |
|
| 497 |
|
| 498 |
+
batter_summary_filter = batter_summary.filter((pl.col('pa') >= 20) & (pl.col('launch_speed') >= 0))
|
| 499 |
stat_list = batter_summary.columns[2:]
|
| 500 |
batter_summary_filter_pd = batter_summary_filter.to_pandas()
|
| 501 |
new_player_metrics = batter_summary.filter(pl.col('batter_id') == batter_id)[['batter_id'] + stat_list]
|