Label encoding: Python : I have to label my data row wise in csv considering two parameters :

1. VE in range 0.9 to 1.3 or 0

2. Calculated load value in range 20 to 50

I have to label these as 1
and others as - 1 by adding another column
I have tried numpy.where and pandas.where but it gives an error saying series is ambiguous.

[Snippet of csv][1]


  [1]: https://i.stack.imgur.com/FBWvF.png