Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

Filter CSV file based on sequence of data from 1 column

How do i remove rows of data from .csv file based on the data of 1 column. I would like to remove a row if the number on the particular column is smaller or bigger than the number above and below it.

Eg.
  X     Y     Z
[15.2, 14.5, 24.6]
[14.2, 13.4, 23.5]
[15.3, 24.5, 24.8]
[14.5, 26.8, 25.6]
[13.4, 25.6, 23.4]

where based on value in the Z column, i would like to remove the 2nd and 5th row of data.

Comments