Closed
Description
https://github.com/pandas-dev/pandas/blob/master/pandas/core/algorithms.py#L1528
In core.algorithms.take:
if allow_fill:
# Pandas style, -1 means NA
validate_indices(indices, len(arr))
result = take_1d(arr, indices, axis=axis, allow_fill=True,
fill_value=fill_value)
It looks to me like the validate_indices
call should be validate_indices(indices, arr.shape[axis])
.
Found while attempting to simplify #26914.