lunarflu HF staff commited on
Commit
9f6b822
1 Parent(s): 8b83d09
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -492,7 +492,7 @@ async def remove_huggingfolks():
492
  community_global_df.drop(community_global_df.columns[2], axis=1, inplace=True)
493
  community_global_df.drop(community_global_df.columns[2], axis=1, inplace=True)
494
  community_global_df['total_exp'] = community_global_df['total_exp'].str.strip('L').astype(int)
495
- community_global_df['total_exp'] = pd.to_numeric(community_global_df['total_exp'])
496
  community_global_df = community_global_df.nlargest(len(community_global_df), 'total_exp')
497
 
498
  top_30_exp = community_global_df.nlargest(30, 'total_exp')
 
492
  community_global_df.drop(community_global_df.columns[2], axis=1, inplace=True)
493
  community_global_df.drop(community_global_df.columns[2], axis=1, inplace=True)
494
  community_global_df['total_exp'] = community_global_df['total_exp'].str.strip('L').astype(int)
495
+ community_global_df['total_exp'] = pd.to_numeric(community_global_df['total_exp'], errors='coerce').fillna(0).astype(int)
496
  community_global_df = community_global_df.nlargest(len(community_global_df), 'total_exp')
497
 
498
  top_30_exp = community_global_df.nlargest(30, 'total_exp')