Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -581,8 +581,11 @@ def server(input, output, session):
|
|
| 581 |
def table2():
|
| 582 |
df_test_merge_small,batting_order_full_opp,statcast_dict = cached_data()
|
| 583 |
|
| 584 |
-
|
| 585 |
|
|
|
|
|
|
|
|
|
|
| 586 |
print(df_test_merge_small)
|
| 587 |
if df_test_merge_small is None:
|
| 588 |
return pd.DataFrame({"Message": ["No Games as of this time"]})
|
|
|
|
| 581 |
def table2():
|
| 582 |
df_test_merge_small,batting_order_full_opp,statcast_dict = cached_data()
|
| 583 |
|
| 584 |
+
import polars as pl
|
| 585 |
|
| 586 |
+
df_test_merge_small = df_test_merge_small.with_columns(
|
| 587 |
+
pl.col("Home").replace({"home": "H", "away": "A"})
|
| 588 |
+
)
|
| 589 |
print(df_test_merge_small)
|
| 590 |
if df_test_merge_small is None:
|
| 591 |
return pd.DataFrame({"Message": ["No Games as of this time"]})
|