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 5cd7bcb commit 38438a2Copy full SHA for 38438a2
flox/core.py
@@ -1809,4 +1809,8 @@ def groupby_reduce(
1809
if _is_minmax_reduction(func) and is_bool_array:
1810
result = result.astype(bool)
1811
1812
+ # we lose dtype information when creating a pandas Index
1813
+ # That's always int64 or float64, so cast back
1814
+ # TODO: migrate to NumericIndex but I think this will just fix itself
1815
+ groups = tuple(g.astype(b.dtype) for g, b in zip(groups, bys))
1816
return (result, *groups)
0 commit comments