James McCool
commited on
Commit
·
4727314
1
Parent(s):
0d5bdc7
Enhance data handling in load_contest_file.py by dropping NA values from BaseName
Browse files- Updated the load_contest_file function to drop NA values from df['BaseName'] before displaying and creating the entry_list, improving data integrity and clarity for users.
- Maintained existing functionality while ensuring that only valid entries are processed and presented during contest file loading.
global_func/load_contest_file.py
CHANGED
@@ -135,7 +135,7 @@ def load_contest_file(upload, helper_var, helper = None, sport = None):
|
|
135 |
|
136 |
print('Made it through check_lineups')
|
137 |
|
138 |
-
st.table(df['BaseName'])
|
139 |
st.table(cleaned_df)
|
140 |
st.table(ownership_df)
|
141 |
st.table(fpts_df)
|
@@ -145,7 +145,7 @@ def load_contest_file(upload, helper_var, helper = None, sport = None):
|
|
145 |
st.table(check_lineups)
|
146 |
|
147 |
# Get unique entry names
|
148 |
-
entry_list = list(set(df['BaseName']))
|
149 |
entry_list.sort()
|
150 |
|
151 |
if helper_var == 1:
|
|
|
135 |
|
136 |
print('Made it through check_lineups')
|
137 |
|
138 |
+
st.table(df['BaseName'].dropna())
|
139 |
st.table(cleaned_df)
|
140 |
st.table(ownership_df)
|
141 |
st.table(fpts_df)
|
|
|
145 |
st.table(check_lineups)
|
146 |
|
147 |
# Get unique entry names
|
148 |
+
entry_list = list(set(df['BaseName'].dropna()))
|
149 |
entry_list.sort()
|
150 |
|
151 |
if helper_var == 1:
|