File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -276,9 +276,9 @@ def udf(*args: Any, **kwargs: Any): # noqa: D417
276276 This list must be of the same length as the number of arguments. Pass
277277 :class:`pyarrow.Field` instances when you need to declare extension
278278 metadata for an argument.
279- return_type (pa.DataType | pa.Field): The return type of the function. Supply
280- a :class:`pyarrow.Field` when the result should expose extension metadata
281- to downstream consumers.
279+ return_type (pa.DataType | pa.Field): The return type of the function.
280+ Supply a :class:`pyarrow.Field` when the result should expose
281+ extension metadata to downstream consumers.
282282 volatility (Volatility | str): See `Volatility` for allowed values.
283283 name (Optional[str]): A descriptive name for the function.
284284
@@ -290,8 +290,13 @@ def udf(*args: Any, **kwargs: Any): # noqa: D417
290290
291291 def double_func(x):
292292 return x * 2
293- double_udf = udf(double_func, [pa.int32()], pa.int32(),
294- "volatile", "double_it")
293+ double_udf = udf(
294+ double_func,
295+ [pa.int32()],
296+ pa.int32(),
297+ "volatile",
298+ "double_it",
299+ )
295300
296301 Example: Using ``udf`` as a decorator::
297302
You can’t perform that action at this time.
0 commit comments