nesticot commited on
Commit
dd9fb83
·
verified ·
1 Parent(s): 9eaa23c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
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
- df_test_merge_small['Home'] = df_test_merge_small['Home'].replace({'home': 'H', 'away': 'A'})
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"]})