jorisvandenbossche commented on code in PR #38008:
URL: https://github.com/apache/arrow/pull/38008#discussion_r1484014373
##########
python/pyarrow/array.pxi:
##########
@@ -3609,7 +3609,7 @@ cdef class FixedShapeTensorArray(ExtensionArray):
and the rest of the dimensions will match the permuted shape of the
fixed
shape tensor.
- The conversion is zero-copy.
+ The conversion is zero-copy if data is primitive numeric and without
nulls.
Review Comment:
In this case it is always zero-copy (because tensors only support numeric
data without nulls, so AFAIK it would raise an error instead of being
non-zero-copy)
Also, can you can the same note to the Scalar `to_numpy()` docstring?
--
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]