NVIDIA / NVIDIA/cudf

[FEA] `np.shape` does not work on `cudf.DataFrame`

Open
#13,045 3 comments 0 reactions 0 assignees View on GitHub
0 - Backlog feature request Python
Dominant language
C++
Stars
9.8k
Forks
1.1k
Avg merge
3d 6m
Merged PRs (30d)
278

Description

Curious if any numpy function that dispatches to `__array_function__` should work on `cudf.DataFrame`

```
In [3]: import numpy as np

In [4]: np.shape(pd.DataFrame([1, 2]))
Out[4]: (2, 1)

In [6]: np.shape(cudf.DataFrame([1, 2]))
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
Cell In[6], line 1
----> 1 np.shape(cudf.DataFrame([1, 2]))

File <__array_function__ internals>:180, in shape(*args, **kwargs)

TypeError: no implementation found for 'numpy.shape' on types that implement __array_function__: []
```

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.