Spaces:
Sleeping
Sleeping
Jimin Park
commited on
Commit
·
750af77
1
Parent(s):
3ae02f6
added new structure
Browse files- util/app.py +3 -0
util/app.py
CHANGED
@@ -123,8 +123,11 @@ def show_stats(player_opgg_url):
|
|
123 |
|
124 |
# Extract additional stats
|
125 |
playstyle = training_features['playstyle'].mode()[0] if 'playstyle' in training_features else 'N/A'
|
|
|
126 |
role_specialization = training_features['role_specialization'].mode()[0] # Most common role
|
|
|
127 |
champion_loyalty_score = training_features['champion_loyalty_score'].mean().round(2) # Average loyalty
|
|
|
128 |
|
129 |
# Map numeric playstyle to descriptive text
|
130 |
playstyle_mapping = {
|
|
|
123 |
|
124 |
# Extract additional stats
|
125 |
playstyle = training_features['playstyle'].mode()[0] if 'playstyle' in training_features else 'N/A'
|
126 |
+
print("processed playstyle\n")
|
127 |
role_specialization = training_features['role_specialization'].mode()[0] # Most common role
|
128 |
+
print("processed role_specialization\n")
|
129 |
champion_loyalty_score = training_features['champion_loyalty_score'].mean().round(2) # Average loyalty
|
130 |
+
print("processed champion_loyalty_score\n")
|
131 |
|
132 |
# Map numeric playstyle to descriptive text
|
133 |
playstyle_mapping = {
|