You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the indexing array passed to iloc (or loc, which I don't like because it's not label-based in this case) is boolean, the idea is that it should select those rows for which the mask is true [NA values are treated as false, which AFAICT is an unnecessary stipulation because there's no way to construct a pandas boolean array with NA values in it].
If the length of the mask array does not match the length of the frame, we should obtain an IndexError. However, cudf produces an empty frame in this case. EDIT: I might have had an old cudf, so I can't reproduce, but cudf raises RuntimeError rather than IndexError here.
This is now purely location based, with no handling of multiindices in
the case of dataframes, and correct treatment of tuple arguments.
- Closesrapidsai#13015
- Closesrapidsai#13013
These must be treated specially and not accidentally converted to integers before indexing.
- Closes#13015
- Closes#13265
- Closes#13270
Introduces tighter guards for loc-based indexing with Series where in some circumstances one must align the indices of the indexed object and the indexer. These now raise NotImplementedError rather than returning incorrect answers.
Authors:
- Lawrence Mitchell (https://github.com/wence-)
- Ashwin Srinath (https://github.com/shwina)
Approvers:
- Ashwin Srinath (https://github.com/shwina)
URL: #13402
Describe the bug
When the indexing array passed to
iloc
(orloc
, which I don't like because it's not label-based in this case) is boolean, the idea is that it should select those rows for which the mask is true [NA values are treated as false, which AFAICT is an unnecessary stipulation because there's no way to construct a pandas boolean array with NA values in it].If the length of the mask array does not match the length of the frame, we should obtain an
IndexError
.However, cudf produces an empty frame in this case.EDIT: I might have had an old cudf, so I can't reproduce, but cudf raisesRuntimeError
rather thanIndexError
here.Steps/Code to reproduce bug
Expected behavior
Should probably match pandas.
The text was updated successfully, but these errors were encountered: