James McCool
commited on
Commit
·
766d3b9
1
Parent(s):
cda266d
Update projections_df processing in app.py: add ownership percentage conversion and ensure salary formatting for improved data integrity and analysis accuracy.
Browse files
app.py
CHANGED
@@ -187,7 +187,10 @@ with tab1:
|
|
187 |
|
188 |
if 'projections_df' not in st.session_state:
|
189 |
st.session_state['projections_df'] = projections.copy()
|
190 |
-
|
|
|
|
|
|
|
191 |
try:
|
192 |
name_id_map = dict(zip(
|
193 |
st.session_state['csv_file']['Name'],
|
|
|
187 |
|
188 |
if 'projections_df' not in st.session_state:
|
189 |
st.session_state['projections_df'] = projections.copy()
|
190 |
+
|
191 |
+
st.session_state['projections_df']['ownership'] = st.session_state['projections_df']['ownership'].str.replace('%', '').astype(float)
|
192 |
+
st.session_state['projections_df']['salary'] = (st.session_state['projections_df']['salary'].astype(str).str.replace(',', '').astype(float).astype(int))
|
193 |
+
|
194 |
try:
|
195 |
name_id_map = dict(zip(
|
196 |
st.session_state['csv_file']['Name'],
|