I'm trying to determine the buy and sell points for trend analysis in a dataset. Here is a sample of the data: The first column is buy, second column is sell.

```
1 [0, 0]
2 [1, 0]
3 [0, 0]
4 [0, 0]
5 [1, 0]
6 [0, 0]
7 [0, 0]
8 [0, 1]
9 [0, 0]
10 [1, 0]

```

The 2nd row says buy, so it's unnecessary for the 5th row to say buy as well, as I want to buy at the lowest price. How can I make the 5th row 0,0 since I want the next 1 to be row 8 (sell). 

Thanks.