You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constt=aq.table({group: ["a","a","a","b","b","b","b","b","c","c",],answer: ["n","y","y","y","n","n","n","y","y","n"]})t.groupby('group').orderby('answer').derive({answers: d=>op.array_agg_distinct(d.answer)}).unorder().derive({// Is there a better way than this?answers: aq.escape(d=>d.answers.filter(q=>q!=='y'))}).view()
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm trying to filter the results of an array_agg operation. Is there a way to do this without doing a second
.derive
with anaq.escape
?Here's an example notebook
Beta Was this translation helpful? Give feedback.
All reactions