AlenkaF commented on code in PR #50561:
URL: https://github.com/apache/arrow/pull/50561#discussion_r4692988715


##########
python/pyarrow/table.pxi:
##########
@@ -555,8 +555,9 @@ cdef class ChunkedArray(_PandasConvertible):
                 "If using `np.array(obj, copy=False)` replace it with "
                 "`np.asarray(obj)` to allow a copy when needed"
             )
-        # 'copy' can further be ignored because to_numpy() already returns a 
copy
         values = self.to_numpy()
+        if copy is True:
+            return np.array(values, dtype=dtype, copy=True)

Review Comment:
   I think this is a valid comment and should be addressed. I would also like 
to see the docstring for to_numpy() updated to reflect single chunked arrays do 
not get copied and there is no way (currently) to force a copy.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to