Jimin Park commited on
Commit
67e33fc
·
1 Parent(s): de140d7

kermitting soon

Browse files
Files changed (1) hide show
  1. util/helper.py +6 -3
util/helper.py CHANGED
@@ -950,9 +950,12 @@ def calculate_champion_loyalty(df):
950
  }
951
 
952
  # Calculate games played for recent champions (only top 2)
953
- print("Start calculate games played for recent champions (only top 2)...\n")
954
- print("row['W_1'] type: ", type(row['W_1']), "\n row['W_1']: ", row['W_1'], "\n ")
955
- print("row['L_1'] type: ", type(row['L_1']), "\n row['L_1']: ", row['L_1'], "\n")
 
 
 
956
  recent_games = [
957
  (int(row['W_1']) + int(row['L_1'])) if pd.notna(row['most_champ_1']) else 0,
958
  (int(row['W_2']) + int(row['L_2'])) if pd.notna(row['most_champ_2']) else 0
 
950
  }
951
 
952
  # Calculate games played for recent champions (only top 2)
953
+ print("START calculate games played for recent champions (only top 2)...\n")
954
+ # print("row['W_1'] type: ", type(row['W_1']), "\n row['W_1']: ", row['W_1'], "\n ")
955
+ # print("row['L_1'] type: ", type(row['L_1']), "\n row['L_1']: ", row['L_1'], "\n")
956
+ print(f"row['W_1'] value: {repr(row['W_1'])}, type: {type(row['W_1'])}")
957
+ print(f"row['L_1'] value: {repr(row['L_1'])}, type: {type(row['L_1'])}")
958
+
959
  recent_games = [
960
  (int(row['W_1']) + int(row['L_1'])) if pd.notna(row['most_champ_1']) else 0,
961
  (int(row['W_2']) + int(row['L_2'])) if pd.notna(row['most_champ_2']) else 0