

def test_sum_with_keepdims():
    ((chunk, chunk_expr), (agg, agg_expr)) = split(t, t.amount.sum(keepdims=True))
    assert (chunk.schema == t.schema)
    assert chunk_expr.isidentical(chunk.amount.sum(keepdims=True))
    assert isscalar(agg_expr.dshape.measure)
    assert agg_expr.isidentical(sum(agg, keepdims=True))

dataset/ETHPy150Open blaze/blaze/blaze/expr/tests/test_split.py test_sum_with_keepdims/VarMisuse@70/87 `agg`->`agg_expr`