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
Describe the bug
In investigating a review suggestion several bugs were encountered with the way dataframes handle slicing, all led to incorrect results.
Steps/Code to reproduce bug
A slice with step > 1 fails to slice an empty dataframe
Expected behavior
Slicing a DataFrame with only an index should simply gather the index as specified. In general I think indexing in cuDF should follow pandas which probably follows numpy under the hood.
Environment overview (please complete the following information)
Environment location: [Bare-metal]
Method of cuDF install: [source]
Environment details
22.04
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Describe the bug
In investigating a review suggestion several bugs were encountered with the way dataframes handle slicing, all led to incorrect results.
Steps/Code to reproduce bug
step > 1
fails to slice an empty dataframeBut not a non-empty dataframe:
The above works as expected for nonempty cases.
Expected behavior
Slicing a DataFrame with only an index should simply gather the index as specified. In general I think indexing in cuDF should follow pandas which probably follows numpy under the hood.
Environment overview (please complete the following information)
Environment details
22.04
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: