-
- Notifications
You must be signed in to change notification settings - Fork 19.4k
Closed
Labels
SparseSparse Data TypeSparse Data Type
Milestone
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.
Metadata
Metadata
Assignees
Labels
SparseSparse Data TypeSparse Data Type