ignacioct commited on
Commit
ec0aa19
Β·
1 Parent(s): 878e05f

renaming df columns to Spanish

Browse files
Files changed (1) hide show
  1. app.py +5 -1
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="Respuestas Enviadas", ascending=False)
 
 
 
 
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