vibhatha commented on code in PR #13687:
URL: https://github.com/apache/arrow/pull/13687#discussion_r927617427
##########
docs/source/python/compute.rst:
##########
@@ -370,3 +370,80 @@ our ``even_filter`` with a ``pc.field("nums") > 5`` filter:
:class:`.Dataset` currently can be filtered using :meth:`.Dataset.to_table`
method
passing a ``filter`` argument. See :ref:`py-filter-dataset` in Dataset
documentation.
+
+
+User-Defined Functions
+======================
+
+.. warning::
+ User-defined functions only supports scalar functions and the current
version is experimental.
+
+To use a user-defined-function (UDF), either the experimental `dataset` API
options can be used or the
+function can be directly called using :func:`pyarrow.compute.call_function`.
+
+To register a UDF, a function name, function docs and input types and output
type needs to be defined.
+
+.. code-block:: python
+
+ import pyarrow.compute as pc
+ function_name = "regression"
Review Comment:
Sure, that's much better.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]