Where with 2 conditions sql

UDFRegistration for UDF registration. SparkSession.version¶ The version of Spark on which this application is running. class pyspark.sql.SQLContext(sparkContext, sparkSession=None, jsqlContext=None)¶ The entry point for working with structured data (rows and columns) in Spark, in Spark 1.x. As of Spark 2.0, this is replaced by SparkSession. ................
................