Jon Solow commited on
Commit
9e44773
·
1 Parent(s): 2c4c424

Use or on the columns

Browse files
Files changed (1) hide show
  1. src/pages/3_Draft_View.py +2 -3
src/pages/3_Draft_View.py CHANGED
@@ -225,9 +225,8 @@ def get_page():
225
  )
226
 
227
  keepers_fp_id_list = [load_yahoo_to_fp_id_map().get(x, x) for x in HARDCODED_KEEPERS_YAHOO_ID.get(SEASON, [])]
228
- ecr_with_draft["is_drafted"] = ecr_with_draft.apply(
229
- lambda r: (r.fp_id is not None) # or (r.player_id in keepers_fp_id_list)
230
- , axis=1
231
  )
232
 
233
  # depth_charts = load_depth_charts()
 
225
  )
226
 
227
  keepers_fp_id_list = [load_yahoo_to_fp_id_map().get(x, x) for x in HARDCODED_KEEPERS_YAHOO_ID.get(SEASON, [])]
228
+ ecr_with_draft["is_drafted"] = ecr_with_draft["fp_id"].notna() | ecr_with_draft["player_id"].isin(
229
+ keepers_fp_id_list
 
230
  )
231
 
232
  # depth_charts = load_depth_charts()