Update app.py
Browse files
app.py
CHANGED
@@ -724,6 +724,13 @@ def server(input, output, session):
|
|
724 |
|
725 |
df_spring = pl.concat([df_spring, df]).sort('game_date', descending=True)
|
726 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
727 |
|
728 |
|
729 |
# df_year_old = stuff_apply.stuff_apply(fe.feature_engineering(pl.concat([df_mlb,df_aaa,df_a,df_afl])))
|
|
|
724 |
|
725 |
df_spring = pl.concat([df_spring, df]).sort('game_date', descending=True)
|
726 |
|
727 |
+
# Update "KC" and "SV" to "CU"
|
728 |
+
df_spring = df_spring.with_columns(
|
729 |
+
pl.when(pl.col("pitch_type").is_in(["KC", "SV"]))
|
730 |
+
.then(pl.lit("CU"))
|
731 |
+
.otherwise(pl.col("pitch_type"))
|
732 |
+
.alias("pitch_type")
|
733 |
+
)
|
734 |
|
735 |
|
736 |
# df_year_old = stuff_apply.stuff_apply(fe.feature_engineering(pl.concat([df_mlb,df_aaa,df_a,df_afl])))
|