if(o.selectorName===memo.lastSelector)/* skip the duplicates */
returnmemo;
/* else, if is a new one */
memo.lastSelector=o.selectorName;
/* copy the selectorName so if is duplicated we keep only the first */
memo.datum.push(o);
returnmemo;
},{datum:[],lastSelector:null});
_.countBy(reduced.datum,'selectorName');
_.countBy(clean,'selectorName');
### content cleaned and reduced, below you'll have a searchable table
viewofsearch=Inputs.search(reduced.datum)
Inputs.table(search);
import{serialize}from"@palewire/saving-csv"
DOM.download(serialize(reduced.datum),`cleaned-${experimentId}-ads.csv`,"Download (the cleaned and reduced) CSV")
Purpose-built for displays of data
Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.