@property
@since(2.0)
def udf(self):
    'Returns a :class:`UDFRegistration` for UDF registration.\n\n        :return: :class:`UDFRegistration`\n        '
    from pyspark.sql.context import UDFRegistration
    return UDFRegistration(self._wrapped)
Returns a :class:`UDFRegistration` for UDF registration.

:return: :class:`UDFRegistration`
@property
@since(2.0)
def udf(self):
    'Returns a :class:`UDFRegistration` for UDF registration.\n\n        :return: :class:`UDFRegistration`\n        '
    from pyspark.sql.context import UDFRegistration
    return UDFRegistration(self._wrapped)