Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
top 30
Browse files
app.py
CHANGED
|
@@ -336,6 +336,13 @@ async def remove_huggingfolks():
|
|
| 336 |
community_global_df = community_global_df[community_global_df.iloc[:, 0] != str(member_id)]
|
| 337 |
|
| 338 |
print(community_global_df)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 339 |
|
| 340 |
except Exception as e:
|
| 341 |
print(f"remove_huggingfolks Error: {e}")
|
|
|
|
| 336 |
community_global_df = community_global_df[community_global_df.iloc[:, 0] != str(member_id)]
|
| 337 |
|
| 338 |
print(community_global_df)
|
| 339 |
+
|
| 340 |
+
community_global_df['discord_exp'] = pd.to_numeric(community_global_df['discord_exp'])
|
| 341 |
+
top_30_exp = community_global_df.nlargest(30, 'discord_exp')
|
| 342 |
+
top_30_rows = top_30_exp.values.tolist()
|
| 343 |
+
|
| 344 |
+
print(top_30_rows)
|
| 345 |
+
|
| 346 |
|
| 347 |
except Exception as e:
|
| 348 |
print(f"remove_huggingfolks Error: {e}")
|