<% profile.columns_profile.forEach(function(cp){
var colIssues = [];
if (cp.null_pct>20) colIssues.push({s:'high',t:'Hoge null-rate'});
else if (cp.null_pct>5) colIssues.push({s:'medium',t:'Enkele nulls'});
if (cp.negative>0) colIssues.push({s:'medium',t:'Negatieve waarden'});
if (cp.unique_pct>95) colIssues.push({s:'low',t:'Unieke ID kolom'});
if (cp.unique_pct<1) colIssues.push({s:'low',t:'Constante waarde'});
var colStat = cp.null_pct > 20 ? 'danger' : cp.null_pct > 5 ? 'warn' : 'good';
%>
<%= cp.name %>
Dtype<%= cp.dtype %>
Compleet<%= (100-cp.null_pct).toFixed(1) %>% · <%= cp.null_count %> null
Uniek<%= cp.unique %> / <%= cp.non_null %> (<%= cp.unique_pct.toFixed(1) %>%)
<% if (cp.min !== undefined && cp.min !== null) { %>
Range<%= cp.min %> — <%= cp.max %>
<% } %>
<% if (cp.mean !== undefined && cp.mean !== null) { %>
μ ± σ<%= cp.mean %> ± <%= cp.std %>
<% } %>
<% if (cp.q25 !== undefined) { %>
QuartielenQ1:<%= cp.q25 %> M:<%= cp.q50 %> Q3:<%= cp.q75 %>
<% } %>
<% if (cp.histogram) { %>
<% var hMax=Math.max(...cp.histogram.counts,1); cp.histogram.counts.forEach(function(h){ %>
<% }) %>
<% } %>
<% if (cp.top_values) { var tvk2=Object.keys(cp.top_values).slice(0,5); %>
Top: <% tvk2.forEach(function(k,i){ %><%= k %><%= i<% }) %>
<% } %>
<% if (colIssues.length>0) { %>
<% colIssues.forEach(function(i){ %><%= i.t %><% }) %>
<% } %>