NVIDIA / NVIDIA/cudf

[BUG] `MultiIndex.equals` does not match pandas for numerical indexes with unequal dtypes

Open
#14,569 0 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**

```python
import cudf

left = cudf.MultiIndex.from_tuples([(1,)])
right = cudf.MultiIndex.from_tuples([(1.0,)])

print(left.equals(right)) # => False

print(left.to_pandas().equals(right.to_pandas())) # => True
```

**Expected behavior**

This should match pandas. Note that `Index.equals` does do dtype casting.

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.