NVIDIA / NVIDIA/cudf

[BUG] Drop function for Multicolumn index doesn't work

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

Description

**Describe the bug**
Drop function for Multicolumn index doesn't work as expected
The error I get is: 'One or more values not found in axis'

**Steps/Code to reproduce bug**
```python
import cudf
df=cudf.DataFrame()
df['src_lat']=[-46.0,-46.0,-46.0, -34.0,-34.0,-34.0, 11.5, 11.5, 11.5]; df['src_long']=df['src_lat']+1
df['dst_lat']=[-46.0, -34.0,11.5,-46.0, -34.0,11.5,-46.0, -34.0,11.5];df['dst_long']=df['dst_lat']+1
df['val']=[0.1,0.2,0.1,0.3,0.2,0.1,0.3,0.3,0.1]
df = df.pivot(index=['src_lat', 'src_long'], columns=['dst_lat', 'dst_long'], values=['val'])
df.columns = df.index
df.drop([(11.5, 12.5), (-46.0, -45.0)])
```

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.