Can we rewrite a dataset making a new column from the previous 1st column only having the rows divisible by 5 in python?

Viewed 15

How my data files look like

Hi! I need help regarding creating a new text or CSV data file from this file which looks like this in the picture attached using python. I want to make a new file from it such that the new column 1 (time column) only has values in 5-sec intervals, now the 1st data will be recorded and (because there are 3/4 data starting from 5 sec or 10 sec and so on) the corresponding values in the other columns, i.e. in the same row will also be recorded along. I want to modify this present data file like this. I have been trying to do it using NumPy but couldn't help myself. Could you help or give me an idea of how to accomplish this task?

0 Answers
Related