Skip to content

Commit

Permalink
try int8
Browse files Browse the repository at this point in the history
  • Loading branch information
dcherian committed Apr 1, 2024
1 parent b0c550b commit a9097c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flox/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -2175,7 +2175,7 @@ def groupby_reduce(
if not is_duck_array(array):
array = np.asarray(array)
is_bool_array = np.issubdtype(array.dtype, bool)
array = array.astype(np.intp) if is_bool_array else array
array = array.astype(np.int8) if is_bool_array else array

isbins = _atleast_1d(isbin, nby)

Expand Down

0 comments on commit a9097c2

Please sign in to comment.