How To Loop Through A Dataframe In Python Syntax If Else Statement