snowflake.snowpark.functions.vectorized¶
- snowflake.snowpark.functions.vectorized(input: type, max_batch_size: Optional[int] = None) Callable[source]¶
Marks a function or UDTF method as vectorized for pandas input. This decorator is a no-op for local invocation. When combined with
udf(), this will make the function behave as a vectorized UDF usingpandas_udf().- Parameters:
input – The type of the input to the function. Must be either
pandas.Seriesorpandas.DataFrame.max_batch_size – The maximum batch size to use for the function. If not provided, the default batch size will be used.
- Returns:
A decorator that marks the function as vectorized.
Example:
See also