I have a Numpy array of the form:
40002 1511863545
40000 1511863546
156 1511863547
40005 1511863547
40003 1511863548
40008 1511863549
340 1511863550
40011 1511863550
...
The first column is data, the second timestamps. The data is in two parts, separated by a gap of 40000.
What I need is two datasets:
156 1511863547
340 1511863550
...
and:
2 1511863545
0 1511863546
5 1511863547
3 1511863548
8 1511863549
11 1511863550
How can I,
- Split the data according to the value in the first column?
- Subtract 40000 from the first column of the second new dataset (leaving the timestamps intact)?