Using Spark 2.1.1
Below is my data frame
id Name1 Name2
1 Naveen Srikanth
2 Naveen Srikanth123
3 Naveen
4 Srikanth Naveen
Now need to filter rows based on two conditions that is 2 and 3 need to be filtered out as name has number's 123 and 3 has null value
using below code to filter only row id 2
df.select("*").filter(df["Name2"].rlike("[0-9]")).show()
got stuck up to include second condition.