Spaces:
Sleeping
Sleeping
Plotting results
Browse files
app.py
CHANGED
@@ -171,7 +171,7 @@ def make_results():
|
|
171 |
plt1.update_layout(legend=dict(orientation="h"))
|
172 |
plt2.update_layout(legend=dict(orientation="h"))
|
173 |
|
174 |
-
col1, col2, col3, col4 = streamlit.columns(
|
175 |
col1.metric("Ethnicity Unknown",
|
176 |
len(refs.raw_results[refs.raw_results['Most Likely Ethnicity'].str.contains('known')]) /
|
177 |
len(refs.raw_results)
|
@@ -182,12 +182,12 @@ def make_results():
|
|
182 |
len(refs.raw_results)
|
183 |
)
|
184 |
|
185 |
-
|
186 |
len(refs.raw_results[refs.raw_results['Most Likely Gender'].str.contains('known|Hard') or refs.raw_results['Most Likely Ethnicity'].str.contains('known')]) /
|
187 |
len(refs.raw_results)
|
188 |
)
|
189 |
|
190 |
-
|
191 |
len(refs.raw_results[refs.raw_results['Most Likely Gender'].str.contains('known|Hard') and refs.raw_results['Most Likely Ethnicity'].str.contains('known')]) /
|
192 |
len(refs.raw_results)
|
193 |
)
|
|
|
171 |
plt1.update_layout(legend=dict(orientation="h"))
|
172 |
plt2.update_layout(legend=dict(orientation="h"))
|
173 |
|
174 |
+
col1, col2, col3, col4 = streamlit.columns(4)
|
175 |
col1.metric("Ethnicity Unknown",
|
176 |
len(refs.raw_results[refs.raw_results['Most Likely Ethnicity'].str.contains('known')]) /
|
177 |
len(refs.raw_results)
|
|
|
182 |
len(refs.raw_results)
|
183 |
)
|
184 |
|
185 |
+
col3.metric("At Least One Unknown",
|
186 |
len(refs.raw_results[refs.raw_results['Most Likely Gender'].str.contains('known|Hard') or refs.raw_results['Most Likely Ethnicity'].str.contains('known')]) /
|
187 |
len(refs.raw_results)
|
188 |
)
|
189 |
|
190 |
+
col4.metric("Both Unknown",
|
191 |
len(refs.raw_results[refs.raw_results['Most Likely Gender'].str.contains('known|Hard') and refs.raw_results['Most Likely Ethnicity'].str.contains('known')]) /
|
192 |
len(refs.raw_results)
|
193 |
)
|