Skip to content

Commit

Permalink
docstring fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rok committed Mar 4, 2024
1 parent 5864644 commit 6f41497
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/pyarrow/scalar.pxi
Original file line number Diff line number Diff line change
Expand Up @@ -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
-------
Expand Down Expand Up @@ -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()

Expand Down

0 comments on commit 6f41497

Please sign in to comment.