Bases: Scalar
Concrete class for Extension scalars.
Methods
Attributes
Return this scalar as a Python object.
str
, optional, default None
Valid 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.
DataType
, default None
Type to cast scalar to.
True
Whether to check for conversion errors such as overflow.
CastOptions
, default None
Additional checks pass by CastOptions
MemoryPool
, optional
memory pool to use for allocations during function execution.
A
Scalar
of the
given
target
data
type.
pyarrow.Scalar
Construct ExtensionScalar from type and storage value.
DataType
The extension type for the result scalar.
The storage value for the result scalar.
ExtensionScalar
Holds a valid (non-null) value.
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)).
False
If True, run expensive checks, otherwise cheap checks only.
ArrowInvalid
Return storage value as a scalar.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4