Skip to content

Commit 4953ddf

Browse files
committed
updated logic for streak
1 parent 40f6fab commit 4953ddf

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

utils/calculations.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,10 @@ def get_player_streaks(df, player_name):
118118

119119
player_matches = df[df['player_name'] == player_name]['match_id'].unique()
120120
match_results = []
121-
121+
122+
wins = 0
123+
losses = 0
124+
122125
for match_id in player_matches:
123126
match_data = df[df['match_id'] == match_id]
124127
game_mode = match_data.iloc[0]['game_mode']

0 commit comments

Comments
 (0)