If statement doesnt work (python) : When I try to apply this if statement,


    for i in (1,14197):
    if (slope[i] <= 5):
        slope[i]=0

nothing gets changed. I read that there might be a problem with the float type of the Dataframe. So one way would be to change the dtype and then apply the if statement. But isnt there a more elegant way?