Update app.py
Browse files
app.py
CHANGED
@@ -69,7 +69,8 @@ def init_baselines():
|
|
69 |
raw_display = raw_display[1:]
|
70 |
raw_display = raw_display.reset_index(drop=True)
|
71 |
raw_display.replace('', 0, inplace=True)
|
72 |
-
|
|
|
73 |
raw_display = raw_display.apply(pd.to_numeric, errors='coerce').fillna(raw_display)
|
74 |
season_model = raw_display[raw_display['Team'] != ""]
|
75 |
|
|
|
69 |
raw_display = raw_display[1:]
|
70 |
raw_display = raw_display.reset_index(drop=True)
|
71 |
raw_display.replace('', 0, inplace=True)
|
72 |
+
cols_to_check = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15']
|
73 |
+
raw_display.loc[:, cols_to_check] = raw_display.loc[:, cols_to_check].replace({'%': ''}, regex=True)
|
74 |
raw_display = raw_display.apply(pd.to_numeric, errors='coerce').fillna(raw_display)
|
75 |
season_model = raw_display[raw_display['Team'] != ""]
|
76 |
|