Spaces:
Sleeping
Sleeping
Jimin Park
commited on
Commit
·
c5a304c
1
Parent(s):
0e5818e
kermitting soon
Browse files- util/helper.py +2 -0
util/helper.py
CHANGED
@@ -951,6 +951,8 @@ def calculate_champion_loyalty(df):
|
|
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 |
recent_games = [
|
955 |
(row['W_1'] + row['L_1']) if pd.notna(row['most_champ_1']) else 0,
|
956 |
(row['W_2'] + row['L_2']) if pd.notna(row['most_champ_2']) else 0
|
|
|
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 |
(row['W_1'] + row['L_1']) if pd.notna(row['most_champ_1']) else 0,
|
958 |
(row['W_2'] + row['L_2']) if pd.notna(row['most_champ_2']) else 0
|