Jon Solow commited on
Commit
acebb03
·
1 Parent(s): ffb6eef

Revert "Remove depth chart refs in draft view"

Browse files

This reverts commit ffb6eef1c41f3437d2c1be3d8adc1f7600480865.

Files changed (1) hide show
  1. src/pages/3_Draft_View.py +7 -7
src/pages/3_Draft_View.py CHANGED
@@ -127,8 +127,8 @@ def display_formatted_tiers(df):
127
  # "tier",
128
  # "is_drafted",
129
  "Team",
130
- # "Depth Position",
131
- # "Source",
132
  ],
133
  column_config={
134
  "player_name": st.column_config.TextColumn(label="", help="Player's name"),
@@ -137,8 +137,8 @@ def display_formatted_tiers(df):
137
  "rank_ecr": st.column_config.NumberColumn(label="Rank", help="Player ECR Rank"),
138
  "tier": st.column_config.NumberColumn(label="Tier", help="Player Tier"),
139
  "is_drafted": st.column_config.CheckboxColumn(label="Drafted", help="Has been drafted"),
140
- # "Depth Position": st.column_config.TextColumn(label=""),
141
- # "Source": st.column_config.TextColumn(label=""),
142
  },
143
  use_container_width=True,
144
  )
@@ -188,8 +188,8 @@ def get_page():
188
  )
189
  ecr_with_draft["is_drafted"] = ecr_with_draft["fp_id"].notna()
190
 
191
- # depth_charts = load_depth_charts()
192
- # ecr_with_draft = ecr_with_draft.merge(depth_charts, how="left", left_on="player_id", right_on="fp_id")
193
 
194
  if ("round" in ecr_with_draft) and ("pick" in ecr_with_draft):
195
  draft_picks_only = ecr_with_draft[ecr_with_draft.is_drafted].sort_values(["round", "pick"])
@@ -212,7 +212,7 @@ def get_page():
212
  filtered_data = filter_dataframe(
213
  ecr_with_draft,
214
  force_on=True,
215
- force_on_columns=["is_drafted", "player_position_id", "Team", "Source"],
216
  )
217
 
218
  position_list = [
 
127
  # "tier",
128
  # "is_drafted",
129
  "Team",
130
+ "Depth Position",
131
+ "Source",
132
  ],
133
  column_config={
134
  "player_name": st.column_config.TextColumn(label="", help="Player's name"),
 
137
  "rank_ecr": st.column_config.NumberColumn(label="Rank", help="Player ECR Rank"),
138
  "tier": st.column_config.NumberColumn(label="Tier", help="Player Tier"),
139
  "is_drafted": st.column_config.CheckboxColumn(label="Drafted", help="Has been drafted"),
140
+ "Depth Position": st.column_config.TextColumn(label=""),
141
+ "Source": st.column_config.TextColumn(label=""),
142
  },
143
  use_container_width=True,
144
  )
 
188
  )
189
  ecr_with_draft["is_drafted"] = ecr_with_draft["fp_id"].notna()
190
 
191
+ depth_charts = load_depth_charts()
192
+ ecr_with_draft = ecr_with_draft.merge(depth_charts, how="left", left_on="player_id", right_on="fp_id")
193
 
194
  if ("round" in ecr_with_draft) and ("pick" in ecr_with_draft):
195
  draft_picks_only = ecr_with_draft[ecr_with_draft.is_drafted].sort_values(["round", "pick"])
 
212
  filtered_data = filter_dataframe(
213
  ecr_with_draft,
214
  force_on=True,
215
+ force_on_columns=["is_drafted", "player_position_id", "Team", "Source", "Depth Position"],
216
  )
217
 
218
  position_list = [