udf in databricks

Phani1
Databricks MVP

Hi Team,

Is there a particular reason why we should avoid using UDF and instead convert to DataFrame code?
Are there any restrictions or limitations (in terms of performance or governance) when using UDFs in Databricks?

 

Regards,

Janga