pyarrow.HalfFloatScalar#
- class pyarrow.HalfFloatScalar#
基类:
Scalar浮点标量的具体类。
- __init__(*args, **kwargs)#
方法
__init__(*args, **kwargs)as_py(self, *[, maps_as_pydicts])将此值作为 Python 浮点数返回。
cast(self[, target_type, safe, options, ...])将标量值转换为另一种数据类型。
equals(self, Scalar other)validate(self, *[, full])执行验证检查。
属性
- as_py(self, *, maps_as_pydicts=None)#
将此值作为 Python 浮点数返回。
- 参数:
- maps_as_pydicts
str, 可选, 默认 None 有效值为 None、‘lossy’ 或 ‘strict’。此参数对于非嵌套标量将被忽略。
- maps_as_pydicts
- cast(self, target_type=None, safe=None, options=None, memory_pool=None)#
将标量值转换为另一种数据类型。
用法请参见
pyarrow.compute.cast()。
- equals(self, Scalar other)#
- 参数:
- other
pyarrow.Scalar
- other
- 返回:
- is_valid#
包含一个有效(非空)值。
- type#
Scalar 对象的数据类型。