We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f65cb52 commit dcfb1dbCopy full SHA for dcfb1db
flox/core.py
@@ -1480,7 +1480,10 @@ def groupby_reduce(
1480
if len(by) == 1 and not isinstance(expected_groups, tuple):
1481
expected_groups = (np.asarray(expected_groups),)
1482
elif len(expected_groups) != len(by):
1483
- raise ValueError("len(expected_groups) != len(by)")
+ raise ValueError(
1484
+ f"Must have same number of `expected_groups` (received {len(expected_groups)}) "
1485
+ f" and variables to group by (received {len(by)})."
1486
+ )
1487
1488
# We convert to pd.Index since that lets us know if we are binning or not
1489
# (pd.IntervalIndex or not)
0 commit comments