From 6f414977e0fb1ef1c9010e2bf300e33c319192fc Mon Sep 17 00:00:00 2001 From: Rok Mihevc Date: Fri, 9 Feb 2024 18:24:59 +0100 Subject: [PATCH] docstring fix --- python/pyarrow/scalar.pxi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/python/pyarrow/scalar.pxi b/python/pyarrow/scalar.pxi index 71bb220f98b8a..81a168a364726 100644 --- a/python/pyarrow/scalar.pxi +++ b/python/pyarrow/scalar.pxi @@ -1054,7 +1054,7 @@ cdef class FixedShapeTensorScalar(ExtensionScalar): The resulting ndarray's shape matches the permuted shape of the fixed shape tensor scalar. - The conversion is zero-copy. + The conversion is zero-copy if data is primitive numeric and without nulls. Returns ------- @@ -1093,6 +1093,8 @@ cdef class VariableShapeTensorScalar(ExtensionScalar): def to_numpy_ndarray(self): """ Convert variable shape tensor extension scalar to a numpy array. + + The conversion is zero-copy if data is primitive numeric and without nulls. """ return self.to_tensor().to_numpy()