Spaces:
Running on CPU Upgrade

lunarflu HF staff commited on
Commit
056eec1
·
verified ·
1 Parent(s): 5599f57

drop some columns

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -478,12 +478,11 @@ async def remove_huggingfolks():
478
  # make a copy while discord id column still exists -> use for rank in discord embeds
479
  community_global_df_with_id = community_global_df_with_id.copy()
480
 
481
-
482
-
483
-
484
-
485
  # drop first column (discord id -> this is so we can display the important stuff in the leaderboard)
486
  community_global_df.drop(community_global_df.columns[0], axis=1, inplace=True)
 
 
 
487
  community_global_df['total_exp'] = community_global_df['total_exp'].str.strip('L').astype(int)
488
  community_global_df['total_exp'] = pd.to_numeric(community_global_df['total_exp'])
489
  community_global_df = community_global_df.nlargest(len(community_global_df), 'total_exp')
 
478
  # make a copy while discord id column still exists -> use for rank in discord embeds
479
  community_global_df_with_id = community_global_df_with_id.copy()
480
 
 
 
 
 
481
  # drop first column (discord id -> this is so we can display the important stuff in the leaderboard)
482
  community_global_df.drop(community_global_df.columns[0], axis=1, inplace=True)
483
+ community_global_df.drop(community_global_df.columns[2], axis=1, inplace=True)
484
+ community_global_df.drop(community_global_df.columns[4], axis=1, inplace=True)
485
+ community_global_df.drop(community_global_df.columns[5], axis=1, inplace=True)
486
  community_global_df['total_exp'] = community_global_df['total_exp'].str.strip('L').astype(int)
487
  community_global_df['total_exp'] = pd.to_numeric(community_global_df['total_exp'])
488
  community_global_df = community_global_df.nlargest(len(community_global_df), 'total_exp')