I have a csv file with 3 columns inside as in the picture
I want to get the English and Spanish but ignore the fields that are null in Spanish so my expected output is
any Ideas how to do it ?
I have a csv file with 3 columns inside as in the picture
I want to get the English and Spanish but ignore the fields that are null in Spanish so my expected output is
any Ideas how to do it ?
 
    
    Use DataFrame.dropna with subset for list for test missing values and then remove French column by DataFrame.drop:
df1 = df.dropna(subset=['English','Spanish']).drop(['French'],axis=1).reset_index(drop=True) 
Or if only 3 columns first remove French and then test all columns:
df1 = df.drop(['French'], axis=1).dropna().reset_index(drop=True) 
