Chaitanya_Raju
Honored Contributor

Hi @Mohammed sadamusean​ 

Can you try like below code in pyspark and let me know if you face any issues

variable_name = df.select(col("Column_Name")).collect()[0][0]
 
if(variable_name>0):
dbutils.notebook.exit('Notebook Failed')  

Happy Learning!!

Thanks for reading and like if this is useful and for improvements or feedback please comment.