Spaces:
Running
Running
James McCool
commited on
Commit
·
d45b209
1
Parent(s):
f268eb0
Add display of opponent performance boosts in init_team_data function of app.py. Enhanced the function by including output for opponent-specific metrics related to kills, deaths, assists, and CS projections during win scenarios. This update improves the visibility of opponent performance data, aiding in more informed team performance evaluations.
Browse files
app.py
CHANGED
@@ -319,6 +319,11 @@ def init_team_data(team, opponent, win_loss, kill_prediction, death_prediction,
|
|
319 |
team_data['Assist_Proj'] = team_data.apply(lambda row: row['lAssist%'] * opp_pos_assists_boost_loss.get(row['position'], 1), axis=1)
|
320 |
team_data['CS_Proj'] = team_data.apply(lambda row: row['lCS'] * opp_pos_cs_boost_loss.get(row['position'], 1), axis=1)
|
321 |
team_data = team_data[['playername', 'teamname', 'position', 'Kill_Proj', 'Death_Proj', 'Assist_Proj', 'CS_Proj']]
|
|
|
|
|
|
|
|
|
|
|
322 |
|
323 |
return team_data.dropna().reset_index(drop=True)
|
324 |
|
|
|
319 |
team_data['Assist_Proj'] = team_data.apply(lambda row: row['lAssist%'] * opp_pos_assists_boost_loss.get(row['position'], 1), axis=1)
|
320 |
team_data['CS_Proj'] = team_data.apply(lambda row: row['lCS'] * opp_pos_cs_boost_loss.get(row['position'], 1), axis=1)
|
321 |
team_data = team_data[['playername', 'teamname', 'position', 'Kill_Proj', 'Death_Proj', 'Assist_Proj', 'CS_Proj']]
|
322 |
+
|
323 |
+
st.write(opp_pos_kills_boost_win)
|
324 |
+
st.write(opp_pos_deaths_boost_win)
|
325 |
+
st.write(opp_pos_assists_boost_win)
|
326 |
+
st.write(opp_pos_cs_boost_win)
|
327 |
|
328 |
return team_data.dropna().reset_index(drop=True)
|
329 |
|