Jon Solow commited on
Commit
574cc25
·
1 Parent(s): 52c163c

Update ecr data and merge on fantasypros_id

Browse files
Files changed (1) hide show
  1. src/pages/1_Keepers.py +3 -5
src/pages/1_Keepers.py CHANGED
@@ -15,13 +15,11 @@ def load_player_ids() -> pd.DataFrame:
15
 
16
 
17
  def load_adp() -> pd.DataFrame:
18
- df = pd.read_csv(
19
- r"https://raw.githubusercontent.com/dynastyprocess/data/eb26796307b0cee1df237381ce59f5290846efec/files/db_fpecr_latest.csv"
20
- )
21
  df = df.loc[
22
  df.fp_page == "/nfl/rankings/ppr-superflex-cheatsheets.php",
23
  [
24
- "yahoo_id",
25
  "ecr",
26
  "sd",
27
  ],
@@ -84,7 +82,7 @@ def load_data():
84
 
85
  # Merge ADP
86
  df_adp = load_adp()
87
- data = data.merge(df_adp, how="left", left_on="player_id", right_on="yahoo_id", suffixes=("", "_adp"))
88
  add_opinionated_keeper_value(data)
89
  return data, teams_list
90
 
 
15
 
16
 
17
  def load_adp() -> pd.DataFrame:
18
+ df = pd.read_csv(r"https://raw.githubusercontent.com/dynastyprocess/data/master/files/db_fpecr_latest.csv")
 
 
19
  df = df.loc[
20
  df.fp_page == "/nfl/rankings/ppr-superflex-cheatsheets.php",
21
  [
22
+ "id",
23
  "ecr",
24
  "sd",
25
  ],
 
82
 
83
  # Merge ADP
84
  df_adp = load_adp()
85
+ data = data.merge(df_adp, how="left", left_on="fantasypros_id", right_on="id", suffixes=("", "_adp"))
86
  add_opinionated_keeper_value(data)
87
  return data, teams_list
88