@@ -26,7 +26,7 @@ Scalar Functions
2626
2727When writing a user-defined function that can operate on a row by row basis, these are called Scalar
2828Functions. You can define your own scalar function by calling
29- :py:func: `~datafusion.udf .ScalarUDF.udf ` .
29+ :py:func: `~datafusion.user_defined .ScalarUDF.udf ` .
3030
3131The basic definition of a scalar UDF is a python function that takes one or more
3232`pyarrow <https://arrow.apache.org/docs/python/index.html >`_ arrays and returns a single array as
@@ -93,9 +93,9 @@ converting to Python objects to do the evaluation.
9393 Aggregate Functions
9494-------------------
9595
96- The :py:func: `~datafusion.udf .AggregateUDF.udaf ` function allows you to define User-Defined
96+ The :py:func: `~datafusion.user_defined .AggregateUDF.udaf ` function allows you to define User-Defined
9797Aggregate Functions (UDAFs). To use this you must implement an
98- :py:class: `~datafusion.udf .Accumulator ` that determines how the aggregation is performed.
98+ :py:class: `~datafusion.user_defined .Accumulator ` that determines how the aggregation is performed.
9999
100100When defining a UDAF there are four methods you need to implement. The ``update `` function takes the
101101array(s) of input and updates the internal state of the accumulator. You should define this function
@@ -153,8 +153,8 @@ Window Functions
153153----------------
154154
155155To implement a User-Defined Window Function (UDWF) you must call the
156- :py:func: `~datafusion.udf .WindowUDF.udwf ` function using a class that implements the abstract
157- class :py:class: `~datafusion.udf .WindowEvaluator `.
156+ :py:func: `~datafusion.user_defined .WindowUDF.udwf ` function using a class that implements the abstract
157+ class :py:class: `~datafusion.user_defined .WindowEvaluator `.
158158
159159There are three methods of evaluation of UDWFs.
160160
@@ -207,7 +207,7 @@ determine which evaluate functions are called.
207207
208208 import pyarrow as pa
209209 from datafusion import udwf, col, SessionContext
210- from datafusion.udf import WindowEvaluator
210+ from datafusion.user_defined import WindowEvaluator
211211
212212 class ExponentialSmooth (WindowEvaluator ):
213213 def __init__ (self , alpha : float ) -> None :
0 commit comments