James McCool
commited on
Commit
·
4088871
1
Parent(s):
bc09bf7
fixed csv_file deletion
Browse files
app.py
CHANGED
|
@@ -601,10 +601,11 @@ if selected_tab == 'Data Load':
|
|
| 601 |
upload_csv_col, csv_template_col = st.columns([3, 1])
|
| 602 |
if pricing_source == 'Paydirt DB':
|
| 603 |
if st.button("Load from Paydirt DB"):
|
| 604 |
-
st.session_state['csv_file'] = load_csv(nfl_reg_salaries)
|
| 605 |
-
st.session_state['pricing_loaded'] = True
|
| 606 |
if 'csv_file' in st.session_state:
|
| 607 |
del st.session_state['csv_file']
|
|
|
|
|
|
|
|
|
|
| 608 |
try:
|
| 609 |
st.session_state['csv_file']['Salary'] = st.session_state['csv_file']['Salary'].astype(str).str.replace(',', '').astype(int)
|
| 610 |
except:
|
|
|
|
| 601 |
upload_csv_col, csv_template_col = st.columns([3, 1])
|
| 602 |
if pricing_source == 'Paydirt DB':
|
| 603 |
if st.button("Load from Paydirt DB"):
|
|
|
|
|
|
|
| 604 |
if 'csv_file' in st.session_state:
|
| 605 |
del st.session_state['csv_file']
|
| 606 |
+
st.session_state['csv_file'] = load_csv(nfl_reg_salaries)
|
| 607 |
+
st.session_state['pricing_loaded'] = True
|
| 608 |
+
|
| 609 |
try:
|
| 610 |
st.session_state['csv_file']['Salary'] = st.session_state['csv_file']['Salary'].astype(str).str.replace(',', '').astype(int)
|
| 611 |
except:
|