James McCool commited on
Commit
9a3a501
·
1 Parent(s): a31c2f9

Update app.py and load_file.py: add regex import in app.py for future enhancements and replace print with write in load_file.py for improved output handling.

Browse files
Files changed (2) hide show
  1. app.py +1 -0
  2. global_func/load_file.py +1 -1
app.py CHANGED
@@ -5,6 +5,7 @@ import pandas as pd
5
  import time
6
  from rapidfuzz import process, fuzz
7
  import random
 
8
 
9
  ## import global functions
10
  from global_func.clean_player_name import clean_player_name
 
5
  import time
6
  from rapidfuzz import process, fuzz
7
  import random
8
+ import re
9
 
10
  ## import global functions
11
  from global_func.clean_player_name import clean_player_name
global_func/load_file.py CHANGED
@@ -26,7 +26,7 @@ def load_file(upload):
26
 
27
  try:
28
  df['salary'] = df['salary'].astype(str).str.replace([',', '$', ' '], '', regex=True).astype(int)
29
- st.print('replaced salary symbols')
30
  except:
31
  pass
32
 
 
26
 
27
  try:
28
  df['salary'] = df['salary'].astype(str).str.replace([',', '$', ' '], '', regex=True).astype(int)
29
+ st.write('replaced salary symbols')
30
  except:
31
  pass
32