pyspark.sql.udf.UserDefinedFunction#
- class pyspark.sql.udf.UserDefinedFunction(func, returnType=StringType(), name=None, evalType=100, deterministic=True)[source]#
- User defined function in Python - New in version 1.3. - Notes - The constructor of this class is not supposed to be directly called. Use - pyspark.sql.functions.udf()or- pyspark.sql.functions.pandas_udf()to create this instance.- Methods - Updates UserDefinedFunction to nondeterministic. - Attributes