Update app.py
Browse files
app.py
CHANGED
@@ -162,6 +162,11 @@ with tab1:
|
|
162 |
st.write('replaced salary symbols')
|
163 |
except:
|
164 |
pass
|
|
|
|
|
|
|
|
|
|
|
165 |
projections['salary'] = projections['salary'].dropna().astype(int)
|
166 |
projections['ownership'] = projections['ownership'].astype(float)
|
167 |
projections = projections.apply(lambda x: x.replace(player_wrong_names_mlb, player_right_names_mlb))
|
|
|
162 |
st.write('replaced salary symbols')
|
163 |
except:
|
164 |
pass
|
165 |
+
try:
|
166 |
+
projections['ownership'] = projections['ownership'].str.replace('%', '').str.replace(' ', '')
|
167 |
+
st.write('replaced ownership symbols')
|
168 |
+
except:
|
169 |
+
pass
|
170 |
projections['salary'] = projections['salary'].dropna().astype(int)
|
171 |
projections['ownership'] = projections['ownership'].astype(float)
|
172 |
projections = projections.apply(lambda x: x.replace(player_wrong_names_mlb, player_right_names_mlb))
|