Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
fillna(0)
Browse files
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')
|