[Python][Docs] ChunkedArray.to_numpy() sets the OWNDATA and WRITEABLE flags to False
- Dominant language
- C++
- Stars
- 17.1k
- Forks
- 4.3k
- Avg merge
- 3d 13h
- Merged PRs (30d)
- 88
Description
### Describe the bug, including details regarding any error messages, version, and platform.
```python
pa.chunked_array([[1.1]]).to_numpy(zero_copy_only=False).flags
```
Results in:
```
C_CONTIGUOUS : True
F_CONTIGUOUS : True
OWNDATA : False
WRITEABLE : False
ALIGNED : True
WRITEBACKIFCOPY : False
```
The [docs](https://arrow.apache.org/docs/python/generated/pyarrow.ChunkedArray.html#pyarrow.ChunkedArray.to_numpy) say: _"Introduced for signature consistence with pyarrow.Array.to_numpy. This must be False here since NumPy arrays’ buffer must be contiguous."_
As we are returning a copy, OWNDATA and WRITEABLE should be True.
PyArrow version: 14.0.1
Numpy version: 1.26.0
### Component(s)
Python
Contributor guide
Assessment
This issue has not been assessed yet.