Spaces:
Sleeping
Sleeping
Commit
•
b62d049
1
Parent(s):
9b8f1aa
Update app.py
Browse files
app.py
CHANGED
@@ -78,7 +78,7 @@ def donut_chart() -> alt.Chart:
|
|
78 |
source = pd.DataFrame(
|
79 |
{
|
80 |
"values": [annotated_records, pending_records],
|
81 |
-
"category": ["
|
82 |
}
|
83 |
)
|
84 |
|
@@ -138,10 +138,10 @@ def obtain_top_5_users(user_ids_annotations: Dict[str, int]) -> pd.DataFrame:
|
|
138 |
"""
|
139 |
|
140 |
dataframe = pd.DataFrame(
|
141 |
-
user_ids_annotations.items(), columns=["Name", "
|
142 |
)
|
143 |
-
dataframe = dataframe.sort_values(by="
|
144 |
-
return dataframe.head(
|
145 |
|
146 |
|
147 |
def main() -> None:
|
|
|
78 |
source = pd.DataFrame(
|
79 |
{
|
80 |
"values": [annotated_records, pending_records],
|
81 |
+
"category": ["Submitted", "Pending"], # Add a new column for categories
|
82 |
}
|
83 |
)
|
84 |
|
|
|
138 |
"""
|
139 |
|
140 |
dataframe = pd.DataFrame(
|
141 |
+
user_ids_annotations.items(), columns=["Name", "Submitted Records"]
|
142 |
)
|
143 |
+
dataframe = dataframe.sort_values(by="Submitted Records", ascending=False)
|
144 |
+
return dataframe.head(10)
|
145 |
|
146 |
|
147 |
def main() -> None:
|