I have a dataframe which contains two columns (as shown in the figure).
I am trying to drop Nan from one of the columns (i.e. FACILITYID). I tried to use the following commands to drop the NaN
temp = temp[temp['FACILITYID'].notnull()]
temp = temp[temp['FACILITYID'].notna()]
temp = temp[~temp['FACILITYID'].isnull()]
temp = temp[~temp['FACILITYID'].isna()]
temp = temp[temp['FACILITYID']!='']
However, none of them remove NaN. I followed the instruction of the existing thread (Nan does not drop out in Python) but no luck. Could anyone point out where am I making the mistake?