We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
df = DataFrame({"a1": [0, 0, 1], "a2": [2, 3, 3], "b": [4, 5, 6]}) df = df.astype({"a1": "category", "a2": "category"}) gb = df.groupby(by=["a1", "a2"], as_index=False, observed=False) gb.nunique()
raises ValueError: Length of values (3) does not match length of index (4)
ValueError: Length of values (3) does not match length of index (4)