NVIDIA / NVIDIA/cudf

dataframe.drop not working for multindex[QST]

Open
#12,105 2 comments 0 reactions 0 assignees View on GitHub
0 - Backlog bug Python question
Dominant language
C++
Stars
9.8k
Forks
1.1k
Avg merge
3d 6m
Merged PRs (30d)
278

Description

I have a cudf dataframe which looks like this
![Screen Shot 2022-11-09 at 3 24 26 PM](https://user-images.githubusercontent.com/23120837/200855560-cdf38efd-c095-42c2-9c8d-269dcac2515d.png)

I want to drop all the rows corresponding to some multiindex. For example I want to drop

`index_to_drop= cudf.MultiIndex.from_tuples(zip([0,0], [1,2]), names=("B_0", "B_1"))`

`df.drop(index=index_to_drop)`

I am getting a NotImplementedError, however same thing is working in Pandas

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.