

def test_std():
    ((chunk, chunk_expr), (agg, agg_expr)) = split(t, t.amount.std())
    assert (chunk.schema == t.schema)
    assert chunk_expr.isidentical(summary(x=chunk.amount.sum(), x2=(chunk.amount ** 2).sum(), n=chunk.amount.count(), keepdims=True))
    assert isrecord(agg.dshape.measure)
    assert agg_expr.isidentical(sqrt(((agg.x2.sum() / agg.n.sum()) - ((agg.x.sum() / chunk.n.sum()) ** 2))))

dataset/ETHPy150Open blaze/blaze/blaze/expr/tests/test_split.py test_std/VarMisuse@140/158 `agg`->`chunk`