File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 301301
302302 with col1 :
303303 st .markdown (f"""
304- <div class="metric-card">
304+ <div class="metric-card" style="margin-bottom: 2rem;" >
305305 <h3>🎯 Total Matches</h3>
306306 <h2>{ overview_stats ['total_matches' ]} </h2>
307307 </div>
308308 """ , unsafe_allow_html = True )
309309
310310 with col2 :
311311 st .markdown (f"""
312- <div class="metric-card">
312+ <div class="metric-card" style="margin-bottom: 2rem;" >
313313 <h3>💀 Total Kills</h3>
314314 <h2>{ overview_stats ['total_kills' ]} </h2>
315315 </div>
316316 """ , unsafe_allow_html = True )
317317
318318 with col3 :
319319 st .markdown (f"""
320- <div class="metric-card">
320+ <div class="metric-card" style="margin-bottom: 2rem;" >
321321 <h3>⚖️ Avg K/D Ratio</h3>
322322 <h2>{ overview_stats ['avg_kd_ratio' ]} </h2>
323323 </div>
330330 with col1 :
331331 total_score = int (df ['score' ].sum ())
332332 st .markdown (f"""
333- <div class="metric-card">
333+ <div class="metric-card" style="margin-bottom: 2rem;" >
334334 <h3>🏆 Total Score</h3>
335335 <h2>{ total_score :,} </h2>
336336 </div>
337337 """ , unsafe_allow_html = True )
338338
339339 with col2 :
340340 st .markdown (f"""
341- <div class="metric-card">
341+ <div class="metric-card" style="margin-bottom: 2rem;" >
342342 <h3>🎮 Game Modes</h3>
343343 <h2>{ len (get_unique_game_modes (df ))} </h2>
344344 </div>
Original file line number Diff line number Diff line change @@ -518,6 +518,7 @@ def get_recent_activity(df, days=7):
518518 'recent_matches' : len (recent_data ['match_id' ].unique ()),
519519 'recent_players' : len (recent_data ['player_name' ].unique ()),
520520 'recent_kills' : int (recent_data ['kills' ].sum ()),
521+ 'recent_score' : int (recent_data ['score' ].sum ()),
521522 'recent_weapons' : recent_data ['weapon' ].value_counts ().head (3 ).to_dict ()
522523 }
523524
You can’t perform that action at this time.
0 commit comments