Spaces:
Runtime error
Runtime error
renaming df columns to Spanish
Browse files
app.py
CHANGED
@@ -382,7 +382,11 @@ def obtain_top_users(user_ids_annotations: Dict[str, int]) -> pd.DataFrame:
|
|
382 |
user_ids_annotations.items(), columns=["Name", "Submitted Responses"]
|
383 |
)
|
384 |
dataframe["Name"] = dataframe["Name"].apply(render_hub_user_link)
|
385 |
-
dataframe = dataframe.sort_values(by="
|
|
|
|
|
|
|
|
|
386 |
return dataframe.head(50)
|
387 |
|
388 |
|
|
|
382 |
user_ids_annotations.items(), columns=["Name", "Submitted Responses"]
|
383 |
)
|
384 |
dataframe["Name"] = dataframe["Name"].apply(render_hub_user_link)
|
385 |
+
dataframe = dataframe.sort_values(by="Submitted Responses", ascending=False)
|
386 |
+
|
387 |
+
# Renaming the df columns to Spanish
|
388 |
+
dataframe.columns = ["Nombre", "Respuestas Enviadas"]
|
389 |
+
|
390 |
return dataframe.head(50)
|
391 |
|
392 |
|