Jimin Park commited on
Commit
977e16e
·
1 Parent(s): f878a08

kermitting soon

Browse files
Files changed (1) hide show
  1. util/helper.py +6 -5
util/helper.py CHANGED
@@ -945,13 +945,13 @@ def calculate_champion_loyalty(df):
945
  }
946
 
947
  # Calculate games played for recent champions (only top 2)
948
- print("START calculate games played for recent champions (only top 2)...\n")
949
  # print("row['W_1'] type: ", type(row['W_1']), "\n row['W_1']: ", row['W_1'], "\n ")
950
  # print("row['L_1'] type: ", type(row['L_1']), "\n row['L_1']: ", row['L_1'], "\n")
951
- print(f"row['W_1'] value: {repr(row['W_1'])}, type: {type(row['W_1'])}")
952
- print(f"row['L_1'] value: {repr(row['L_1'])}, type: {type(row['L_1'])}")
953
 
954
- print(".... END calculate games played for recent champions (only top 2)\n \n \n")
955
 
956
  recent_games = [
957
  (int(row['W_1']) + int(row['L_1'])) if pd.notna(row['most_champ_1']) else 0,
@@ -959,8 +959,9 @@ def calculate_champion_loyalty(df):
959
  ]
960
 
961
  print(f"recent_games was: {recent_games}, types: {[type(x) for x in recent_games]}")
 
962
 
963
- print("\n \n Summing recent games... \n")
964
  total_recent_games = sum(recent_games)
965
  print("total_recent_games: ", total_recent_games, "\n")
966
  total_season_games = sum(season_games)
 
945
  }
946
 
947
  # Calculate games played for recent champions (only top 2)
948
+ #print("START calculate games played for recent champions (only top 2)...\n")
949
  # print("row['W_1'] type: ", type(row['W_1']), "\n row['W_1']: ", row['W_1'], "\n ")
950
  # print("row['L_1'] type: ", type(row['L_1']), "\n row['L_1']: ", row['L_1'], "\n")
951
+ #print(f"row['W_1'] value: {repr(row['W_1'])}, type: {type(row['W_1'])}")
952
+ #print(f"row['L_1'] value: {repr(row['L_1'])}, type: {type(row['L_1'])}")
953
 
954
+ #print(".... END calculate games played for recent champions (only top 2)\n \n \n")
955
 
956
  recent_games = [
957
  (int(row['W_1']) + int(row['L_1'])) if pd.notna(row['most_champ_1']) else 0,
 
959
  ]
960
 
961
  print(f"recent_games was: {recent_games}, types: {[type(x) for x in recent_games]}")
962
+ print(f"season_games was: {season_games}, types: {[type(x) for x in season_games]}")
963
 
964
+ print("\nSumming recent games... \n")
965
  total_recent_games = sum(recent_games)
966
  print("total_recent_games: ", total_recent_games, "\n")
967
  total_season_games = sum(season_games)