pyarrow.Int8Scalar#
- classpyarrow.Int8Scalar#
Bases:
ScalarConcrete class for int8 scalars.
- __init__(*args,**kwargs)#
Methods
__init__(*args, **kwargs)as_py(self, *[, maps_as_pydicts])Return this value as a Python int.
cast(self[, target_type, safe, options, ...])Cast scalar value to another data type.
equals(self, Scalar other)validate(self, *[, full])Perform validation checks.
Attributes
- as_py(self,*,maps_as_pydicts=None)#
Return this value as a Python int.
- Parameters:
- maps_as_pydicts
str, optional, defaultNone Valid values areNone, ‘lossy’, or ‘strict’.This parameter is ignored for non-nested Scalars.
- maps_as_pydicts
- cast(self,target_type=None,safe=None,options=None,memory_pool=None)#
Cast scalar value to another data type.
See
pyarrow.compute.cast()for usage.- Parameters:
- Returns:
- scalar
AScalarofthegiventargetdatatype.
- scalar
- equals(self,Scalarother)#
- Parameters:
- other
pyarrow.Scalar
- other
- Returns:
- is_valid#
Holds a valid (non-null) value.
- type#
Data type of the Scalar object.
On this page

