Multichem commited on
Commit
ec7f097
·
1 Parent(s): c1d6516

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -9
app.py CHANGED
@@ -142,16 +142,8 @@ with tab2:
142
  flex_file.rename(columns={"Own": "Proj DK Own%"}, inplace = True)
143
  flex_file['name_var'] = flex_file['Player']
144
  flex_file['lock'] = flex_file['Player'].isin(lock_player)*1
145
- flex_file['force_group_1'] = flex_file['Player'].isin(force_group_1)*1
146
- flex_file['force_group_2'] = flex_file['Player'].isin(force_group_2)*1
147
- flex_file['cut_group_1'] = flex_file['Player'].isin(cut_group_1)*1
148
- flex_file['cut_group_2'] = flex_file['Player'].isin(cut_group_2)*1
149
- chalk_file = flex_file.sort_values(by='Proj DK Own%', ascending=False)
150
- chalk_group_df = chalk_file.sample(n=5)
151
- chalk_group = chalk_group_df['Player'].tolist()
152
- flex_file['chalk_group'] = flex_file['Player'].isin(chalk_group)*1
153
  flex_file['Pos'] = 'G'
154
- flex_file = flex_file[['Player', 'name_var', 'Pos', 'Salary', 'Median', 'Proj DK Own%', 'lock', 'force_group_1', 'force_group_2', 'cut_group_1', 'cut_group_2', 'chalk_group', 'LevX']]
155
  if x > 1:
156
  if slack_var > 0:
157
  flex_file['randNumCol'] = np.random.randint(-int(slack_var),int(slack_var), flex_file.shape[0])
 
142
  flex_file.rename(columns={"Own": "Proj DK Own%"}, inplace = True)
143
  flex_file['name_var'] = flex_file['Player']
144
  flex_file['lock'] = flex_file['Player'].isin(lock_player)*1
 
 
 
 
 
 
 
 
145
  flex_file['Pos'] = 'G'
146
+ flex_file = flex_file[['Player', 'name_var', 'Pos', 'Salary', 'Median', 'Proj DK Own%', 'lock', 'LevX']]
147
  if x > 1:
148
  if slack_var > 0:
149
  flex_file['randNumCol'] = np.random.randint(-int(slack_var),int(slack_var), flex_file.shape[0])