Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
drop rows (records) where hf_user_name does not exist (we display only verified users)
Browse files
app.py
CHANGED
|
@@ -575,6 +575,8 @@ async def remove_huggingfolks():
|
|
| 575 |
community_global_df.drop(community_global_df.columns[2], axis=1, inplace=True)
|
| 576 |
community_global_df.drop(community_global_df.columns[2], axis=1, inplace=True)
|
| 577 |
community_global_df.drop(community_global_df.columns[3], axis=1, inplace=True)
|
|
|
|
|
|
|
| 578 |
community_global_df['total_exp'] = community_global_df['total_exp'].str.strip('L').astype(int)
|
| 579 |
community_global_df['total_exp'] = pd.to_numeric(community_global_df['total_exp'], errors='coerce').fillna(0).astype(int)
|
| 580 |
community_global_df = community_global_df.nlargest(len(community_global_df), 'total_exp')
|
|
|
|
| 575 |
community_global_df.drop(community_global_df.columns[2], axis=1, inplace=True)
|
| 576 |
community_global_df.drop(community_global_df.columns[2], axis=1, inplace=True)
|
| 577 |
community_global_df.drop(community_global_df.columns[3], axis=1, inplace=True)
|
| 578 |
+
# drop rows (records) where hf_user_name does not exist (we display only verified users)
|
| 579 |
+
community_global_df = community_global_df.dropna(subset=['hf_user_name'])
|
| 580 |
community_global_df['total_exp'] = community_global_df['total_exp'].str.strip('L').astype(int)
|
| 581 |
community_global_df['total_exp'] = pd.to_numeric(community_global_df['total_exp'], errors='coerce').fillna(0).astype(int)
|
| 582 |
community_global_df = community_global_df.nlargest(len(community_global_df), 'total_exp')
|