Spaces:
Sleeping
Sleeping
Jimin Park
commited on
Commit
·
de140d7
1
Parent(s):
3272247
kermitting soon
Browse files- util/helper.py +2 -2
util/helper.py
CHANGED
@@ -954,8 +954,8 @@ def calculate_champion_loyalty(df):
|
|
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
|
959 |
]
|
960 |
|
961 |
total_recent_games = sum(recent_games)
|
|
|
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
|
959 |
]
|
960 |
|
961 |
total_recent_games = sum(recent_games)
|