Commit
·
d2511c2
1
Parent(s):
177a597
Added "anon" prefix for anonymous users
Browse files
utils.py
CHANGED
|
@@ -31,7 +31,7 @@ def fetch_hf_results():
|
|
| 31 |
df["property"] = df["assay"].map(ASSAY_RENAME)
|
| 32 |
|
| 33 |
# Anonymize the user column at this point
|
| 34 |
-
df.loc[df["anonymous"] != False, "user"] = df.loc[df["anonymous"] != False, "user"].apply(readable_hash)
|
| 35 |
|
| 36 |
return df
|
| 37 |
|
|
|
|
| 31 |
df["property"] = df["assay"].map(ASSAY_RENAME)
|
| 32 |
|
| 33 |
# Anonymize the user column at this point
|
| 34 |
+
df.loc[df["anonymous"] != False, "user"] = "anon-" + df.loc[df["anonymous"] != False, "user"].apply(readable_hash)
|
| 35 |
|
| 36 |
return df
|
| 37 |
|