Returns a function that will call a user-defined function on the dataframe result of queries.
User defined functions (UDF) are a special time series feature that allow running custom Python code on the result
of queries returning dataframes. The UDF is applied to the final dataframe in the result of all queries.
Parameters:
func (Callable[[pandas.DataFrame], Any]) – User defined function to apply.
columns (List[str],optional) – List of column names for the resulting dataframe when func returns pandas.DataFrame
(default is the original column names in the input dataframe).
types (List *[*Any],optional) – List of column types for the resulting dataframe when func returns pandas.DataFrame
(default is the original column types in the input dataframe).
Returns:
The result of applying the UDF on the input :py`pandas.DataFrame`.