I have a dataframe contains 3700 rows x 53 columns. I need to remove all columns which contains unique characters "nan" from this dataframe.
For example:
df = 
 X1  X2_nan      x3  x4_nan
 34       0    65.8       1
 35       1  5432.1       1
 87       1   443.1       0
 65       0   213.3       0
I want to remove all columns contains "nan" to get:
df1 = 
 X1      x3
 34    65.8
 35  5432.1
 87   443.1
 65   213.3
 
     
    