Sep-15-2020, 07:15 PM
Hello all
I have trying to write some code that loops through all values in a dataframe and checks if the value is equal to 5 values that i am interested in, the code i have is as follows:-
Can anyone help at all?
Thank you.
I have trying to write some code that loops through all values in a dataframe and checks if the value is equal to 5 values that i am interested in, the code i have is as follows:-
if (df.iloc(B,2) != "A") or (df.iloc(B,2) != "14-C") or (df.iloc(B,2) != "CAT") or (df.iloc(B,2) != "Tony") or (df.iloc(B,2) != "USE"):I keep getting an error which states:-
TypeError: __call__() takes from 1 to 2 positional arguments but 3 were givenI know there maybe a better way of coding this but i just want to code it the way it makes sense in my head.
Can anyone help at all?
Thank you.