James McCool commited on
Commit
1e08ae6
·
1 Parent(s): 440bba8

Update cleaned_df column names in load_contest_file.py for clarity and consistency

Browse files

- Modified the column names in cleaned_df from 'UTIL' to 'UTIL1', 'UTIL2', 'UTIL3', 'UTIL4', and 'UTIL5' to enhance clarity and avoid confusion in data representation.
- Maintained existing functionality while improving the organization and readability of contest data processing.

Files changed (1) hide show
  1. global_func/load_contest_file.py +1 -1
global_func/load_contest_file.py CHANGED
@@ -134,7 +134,7 @@ def load_contest_file(upload, type, helper = None, sport = None):
134
  cleaned_df = cleaned_df.drop(columns=['Lineup', 'Remove'])
135
  entry_counts = cleaned_df['BaseName'].value_counts()
136
  cleaned_df['EntryCount'] = cleaned_df['BaseName'].map(entry_counts)
137
- cleaned_df = cleaned_df[['BaseName', 'EntryCount', 'CPT', 'UTIL', 'UTIL', 'UTIL', 'UTIL', 'UTIL']]
138
  st.table(cleaned_df.head(10))
139
 
140
  print('Made it through check_lineups')
 
134
  cleaned_df = cleaned_df.drop(columns=['Lineup', 'Remove'])
135
  entry_counts = cleaned_df['BaseName'].value_counts()
136
  cleaned_df['EntryCount'] = cleaned_df['BaseName'].map(entry_counts)
137
+ cleaned_df = cleaned_df[['BaseName', 'EntryCount', 'CPT', 'UTIL1', 'UTIL2', 'UTIL3', 'UTIL4', 'UTIL5']]
138
  st.table(cleaned_df.head(10))
139
 
140
  print('Made it through check_lineups')