# Load DK UTIL dkutil = DKUtil(sq3reader, player_list, boxscores, dkdata, {"logging": "on"}) def filter(playerData): if playerData["time_on_ice_s"] > 920 and playerData["fppg"] > 2.2: return True else: return False # David Krejci|Patrice Bergeron|Ryan O'Reilly|Brad Marchand|Alex Ovechkin|Oliver Ekman-Larsson|Rasmus Ristolainen # def filter(playerData): # if (playerData['time_on_ice_s'] > 1020 and playerData['fppg'] > 2 # and playerData['player']!='David Krejci' # and playerData['player']!='Patrice Bergeron' # and playerData['player']!='Ryan O\'Reilly' # and playerData['player']!='Brad Marchand' # and playerData['player']!='Alex Ovechkin' # and playerData['player']!='Oliver Ekman-Larsson' # and playerData['player']!='Rasmus Ristolainen'): # return True# # else: # return False sorter = "value" # sorter = 'value' dkutil.generatePlayerData(myDate, "2016", filter) dkutil.generateLineup_v2(sorter)
dksalary = DKSalary('input/'+myDate+'_DKSalaries.csv') dkdata = dksalary.getDkdata() #Load DK UTIL dkutil = DKUtil(sq3reader, player_list, boxscores, dkdata, {'logging':'on'}) def filter(playerData): if (playerData['time_on_ice_s'] > 1020 and playerData['fppg'] > 2.5): return True else: return False #David Krejci|Patrice Bergeron|Ryan O'Reilly|Brad Marchand|Alex Ovechkin|Oliver Ekman-Larsson|Rasmus Ristolainen #def filter(playerData): #if (playerData['time_on_ice_s'] > 1020 and playerData['fppg'] > 2 #and playerData['player']!='David Krejci' #and playerData['player']!='Patrice Bergeron' #and playerData['player']!='Ryan O\'Reilly' #and playerData['player']!='Brad Marchand' #and playerData['player']!='Alex Ovechkin' #and playerData['player']!='Oliver Ekman-Larsson' #and playerData['player']!='Rasmus Ristolainen'): # return True# #else: # return False sorter = 'fppg' #sorter = 'value' dkutil.generatePlayerData(myDate, '2016', filter) myplayers = dkutil.generateLineup_v2(sorter)