[BUG] `is_list_like` does not match pandas equivalent for cupy arrays
- Dominant language
- C++
- Stars
- 9.8k
- Forks
- 1.1k
- Avg merge
- 3d 6m
- Merged PRs (30d)
- 278
Description
**Describe the bug**
`is_list_like` does not match pandas equivalent for cupy array objects
https://pandas.pydata.org/docs/reference/api/pandas.api.types.is_list_like.html
**Steps/Code to reproduce bug**
```python
import pandas as pd
import numpy as np
import cudf
import cupy as cp
pd.api.types.is_list_like(np.array([1])) # => True
pd.api.types.is_list_like(cp.array([1])) # => True
cudf.api.types.is_list_like(np.array([1])) # => True
cudf.api.types.is_list_like(cp.array([1])) # => False
```
**Expected behavior**
I'd expect `is_list_like` to return True matching the equivalent pandas function when called with a cupy or numpy array containing a list of values
```python
cudf.api.types.is_list_like(cp.array([1])) # => True
```
**Environment overview (please complete the following information)**
- Environment location: docker
- Method of cuDF install: pip
Contributor guide
Assessment
This issue has not been assessed yet.