pyarrow.compute.scalar#
- pyarrow.compute.scalar(value)[source]#
Expression representing a scalar value.
Creates an Expression object representing a scalar value that can be used in compute expressions and predicates.
- Parameters:
- Returns:
- scalar_expr
Expression
An Expression representing the scalar value
- scalar_expr
Notes
This function differs from
pyarrow.scalar()
in the following way:pyarrow.scalar()
creates apyarrow.Scalar
object that represents a single value in Arrow’s memory model.pyarrow.compute.scalar()
creates anExpression
object representing a scalar value that can be used in compute expressions, predicates, and dataset filtering operations.