AlenkaF commented on code in PR #45668: URL: https://github.com/apache/arrow/pull/45668#discussion_r1992800307
########## python/pyarrow/compute.py: ########## @@ -734,11 +734,24 @@ def field(*name_or_index): def scalar(value): """Expression representing a scalar value. + Creates an Expression object representing a scalar value that can be used + in compute expressions and predicates. + Parameters ---------- value : bool, int, float or string - Python value of the scalar. Note that only a subset of types are - currently supported. + Python value of the scalar. This function accepts any value that can be + converted to a pyarrow.Scalar using pa.scalar(). + + Notes + ----- + This function is different from ``pyarrow.scalar()``: Review Comment: ```suggestion This function differs from ``pyarrow.scalar()`` in the following way: ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org