I try to compare two columns (string type) in dataframe :
if((MODEL_STANDARD_df['FT']== "4") and (MODEL_STANDARD_df['FT_CODE'] == ' ')):
MODEL_STANDARD_df['ft2'] = "DIESEL"
but i get this error :
Error in Python process: At line 18: <type 'exceptions.ValueError'>:
The truth value of a Series is ambiguous. Use a.empty, a.bool(),
a.item(), a.any() or a.all(). More info about this error
Any idea please to resolve this problem?
Thansk