| [ Web Proxy ] |
| Viewing: https://arrow.apache.org/docs/python/generated/pyarrow.FixedShapeTensorScalar.html | [Back] [Original] |
Section Navigation
Bases: ExtensionScalar
Concrete class for fixed shape tensor extension scalar.
Methods
|
|
|
Return this scalar as a Python object. |
|
Cast scalar value to another data type. |
|
|
|
Construct ExtensionScalar from type and storage value. |
|
Convert fixed shape tensor scalar to a numpy.ndarray. |
|
Convert fixed shape tensor extension scalar to a pyarrow.Tensor, using shape and strides derived from corresponding FixedShapeTensorType. |
|
Perform validation checks. |
Attributes
Holds a valid (non-null) value. |
|
Data type of the Scalar object. |
|
Return storage value as a scalar. |
Return this scalar as a Python object.
str, optional, default NoneValid values are None, lossy, or strict. The default behavior (None), is to convert Arrow Map arrays to Python association lists (list-of-tuples) in the same order as the Arrow Map, as in [(key1, value1), (key2, value2), ].
If lossy or strict, convert Arrow Map arrays to native Python dicts.
If lossy, whenever duplicate keys are detected, a warning will be printed. The last seen value of a duplicate key will be in the Python dictionary. If strict, this instead results in an exception being raised when detected.
Cast scalar value to another data type.
See pyarrow.compute.cast() for usage.
A Scalar of the given target data type.pyarrow.ScalarConstruct ExtensionScalar from type and storage value.
DataTypeThe extension type for the result scalar.
The storage value for the result scalar.
ExtensionScalarHolds a valid (non-null) value.
Convert fixed shape tensor scalar to a numpy.ndarray.
The resulting ndarrays shape matches the permuted shape of the fixed shape tensor scalar. The conversion is zero-copy.
Convert fixed shape tensor extension scalar to a pyarrow.Tensor, using shape and strides derived from corresponding FixedShapeTensorType.
The conversion is zero-copy.
pyarrow.TensorTensor represented stored in FixedShapeTensorScalar.
Data type of the Scalar object.
Perform validation checks. An exception is raised if validation fails.
By default only cheap validation checks are run. Pass full=True for thorough validation checks (potentially O(n)).
Return storage value as a scalar.
FixedShapeTensorScalarFixedShapeTensorScalar.__init__()FixedShapeTensorScalar.as_py()FixedShapeTensorScalar.cast()FixedShapeTensorScalar.equals()FixedShapeTensorScalar.from_storage()FixedShapeTensorScalar.is_validFixedShapeTensorScalar.to_numpy()FixedShapeTensorScalar.to_tensor()FixedShapeTensorScalar.typeFixedShapeTensorScalar.validate()FixedShapeTensorScalar.value
Copyright 2016-2026 Apache Software Foundation.
Apache Arrow, Arrow, Apache, the Apache logo, and the Apache Arrow project logo are either registered trademarks or trademarks of The Apache Software Foundation in the United States and other countries.
Created using Sphinx 9.1.0.
Built with the PyData Sphinx Theme 0.20.0.
| Web Proxy Viewer | New URL | Original Page |