shubham680 commited on
Commit
efba59b
·
verified ·
1 Parent(s): 8826224

Update pages/player stats.py

Browse files
Files changed (1) hide show
  1. pages/player stats.py +4 -3
pages/player stats.py CHANGED
@@ -146,9 +146,10 @@ fig = make_subplots(
146
  #subplot_titles=[f"Stats {i+1}" for i in range(num_plots)]
147
  #subplot_titles=[f"{header}" for header in row_headers]
148
  subplot_titles = []
149
- for header in row_headers:
150
- subplot_titles.append(f"{header} - Pie")
151
- subplot_titles.append(f"{header} - Bar")
 
152
 
153
  )
154
 
 
146
  #subplot_titles=[f"Stats {i+1}" for i in range(num_plots)]
147
  #subplot_titles=[f"{header}" for header in row_headers]
148
  subplot_titles = []
149
+ for i in range(len(final_df2)):
150
+ label = final_df2.iloc[i, 0]
151
+ subplot_titles.append(f"{label} - Pie")
152
+ subplot_titles.append(f"{label} - Bar")
153
 
154
  )
155