Spaces:
Paused
Paused
update aggregations
Browse files
opendashboards/assets/metric.py
CHANGED
|
@@ -44,8 +44,7 @@ def runs(df_long):
|
|
| 44 |
col3.metric('Events', fmt(df_long.groupby(['run_id','_step']).ngroups))
|
| 45 |
col4.metric('Completions', fmt(df_long.shape[0]))
|
| 46 |
|
| 47 |
-
|
| 48 |
-
aggs = df_long.groupby(name_type).agg({'uids': 'nunique', 'completions': 'nunique'})
|
| 49 |
print(aggs)
|
| 50 |
for i,c in enumerate(st.columns(len(aggs))):
|
| 51 |
name = aggs.index[i].title()
|
|
|
|
| 44 |
col3.metric('Events', fmt(df_long.groupby(['run_id','_step']).ngroups))
|
| 45 |
col4.metric('Completions', fmt(df_long.shape[0]))
|
| 46 |
|
| 47 |
+
aggs = df_long.groupby('task').agg({'uids': 'nunique', 'completions': 'nunique'})
|
|
|
|
| 48 |
print(aggs)
|
| 49 |
for i,c in enumerate(st.columns(len(aggs))):
|
| 50 |
name = aggs.index[i].title()
|