Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -337,7 +337,10 @@ async def add_exp(member_id):
|
|
337 |
# discord_user_id to string
|
338 |
copy_df['discord_user_id'] = copy_df['discord_user_id'].astype(str).str.strip('L')
|
339 |
print("After processing discord_user_id:\n", copy_df['discord_user_id'].head())
|
340 |
-
|
|
|
|
|
|
|
341 |
# total_exp to int
|
342 |
copy_df['total_exp'] = copy_df['total_exp'].astype(str).str.strip('L').astype(int)
|
343 |
print("After processing total_exp:\n", copy_df['total_exp'].head())
|
|
|
337 |
# discord_user_id to string
|
338 |
copy_df['discord_user_id'] = copy_df['discord_user_id'].astype(str).str.strip('L')
|
339 |
print("After processing discord_user_id:\n", copy_df['discord_user_id'].head())
|
340 |
+
|
341 |
+
# NaN -> 0
|
342 |
+
copy_df['total_exp'] = copy_df['total_exp'].fillna(0)
|
343 |
+
|
344 |
# total_exp to int
|
345 |
copy_df['total_exp'] = copy_df['total_exp'].astype(str).str.strip('L').astype(int)
|
346 |
print("After processing total_exp:\n", copy_df['total_exp'].head())
|