My Dataframe looks like below
ID,FirstName,LastName
1,Navee,Srikanth
2,,Srikanth
3,Naveen,
Now My Problem statement is I have to remove the row number 2 since First Name is null.
I am using below pyspark script
join_Df1= Name.filter(Name.col(FirstName).isnotnull()).show()
I am getting error as
File "D:\0\NameValidation.py", line 13, in <module>
join_Df1= filter(Name.FirstName.isnotnull()).show()
TypeError: 'Column' object is not callable
Can anyone please help me on this to resolve