Jon Solow commited on
Commit
2a129b1
·
1 Parent(s): 84f5d89

Add sorting of keeper options

Browse files
Files changed (1) hide show
  1. src/pages/1_Keepers.py +1 -0
src/pages/1_Keepers.py CHANGED
@@ -70,6 +70,7 @@ def load_data():
70
  # Hack to get position, replace with better position from yahoo api in future
71
  data["position"] = data["eligible_positions"].apply(lambda x: eval(x)[0])
72
  data.columns = data.columns.str.lower()
 
73
  teams_list = sorted(list(data["team_name"].unique()))
74
 
75
  # Merge player ids
 
70
  # Hack to get position, replace with better position from yahoo api in future
71
  data["position"] = data["eligible_positions"].apply(lambda x: eval(x)[0])
72
  data.columns = data.columns.str.lower()
73
+ data.sort_values(["team_name", "keeper_cost"], inplace=True)
74
  teams_list = sorted(list(data["team_name"].unique()))
75
 
76
  # Merge player ids