[ Web Proxy ]
URL:
Viewing: https://arrow.apache.org/docs/python/generated/../api/../generated/pyarrow.compute.scalar.html [Back]  [Original]

pyarrow.compute.scalar — Apache Arrow v25.0.1
Back to top
Search the docs ...:

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:
valuebool, int, float or str

Python value of the scalar. This function accepts any value that can be converted to a pyarrow.Scalar using pa.scalar().

Returns:
scalar_exprExpression

An Expression representing the scalar value

Notes

This function differs from pyarrow.scalar() in the following way:

  • pyarrow.scalar() creates a pyarrow.Scalar object that represents a single value in Arrows memory model.

  • pyarrow.compute.scalar() creates an Expression object representing a scalar value that can be used in compute expressions, predicates, and dataset filtering operations.


Web Proxy Viewer  |  New URL  |  Original Page