BUG: DataFrameGroupBy.sum ignores min_count for boolean data type (original) (raw)


Behavior is from master:

import pandas as pd

df = pd.DataFrame({"a": [1, 2], "b": pd.array([True, True])}) df.groupby("a").sum(min_count=2)

gives

but expected output is

It looks to me like there's an attempt to compute a Cythonized result which fails, after which point the min_count argument is forgotten.