Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -54,8 +54,8 @@ def init_baselines():
|
|
54 |
'FD_Salary', 'FD_Avg_Val', 'FD_Ceiling_Value']]
|
55 |
trend_table['DK_Salary'] = trend_table['DK_Salary'].str.replace(',', '').astype(float)
|
56 |
trend_table['FD_Salary'] = trend_table['FD_Salary'].str.replace(',', '').astype(float)
|
57 |
-
|
58 |
-
trend_table
|
59 |
|
60 |
dk_minutes_table = trend_table[['PLAYER_NAME', 'Team', 'L10 MIN', 'L5 MIN', 'L3 MIN', 'Trend Min']]
|
61 |
|
|
|
54 |
'FD_Salary', 'FD_Avg_Val', 'FD_Ceiling_Value']]
|
55 |
trend_table['DK_Salary'] = trend_table['DK_Salary'].str.replace(',', '').astype(float)
|
56 |
trend_table['FD_Salary'] = trend_table['FD_Salary'].str.replace(',', '').astype(float)
|
57 |
+
data_cols = trend_table.columns.drop(['PLAYER_NAME', 'Team', 'Position', 'FD_Position'])
|
58 |
+
trend_table[data_cols] = trend_table[data_cols].apply(pd.to_numeric, errors='coerce')
|
59 |
|
60 |
dk_minutes_table = trend_table[['PLAYER_NAME', 'Team', 'L10 MIN', 'L5 MIN', 'L3 MIN', 'Trend Min']]
|
61 |
|