BBands wrote:
> If I have a NumPy array like so:
>
> [[1, 12],
> [2, 13],
> [3, 14],
> [4, 15],
> [5, 16],
> [6, 15],
> [7, 14]]
>
> How can I do an inplace diff, ending up with this?
>
> [[1, 0],
> [2, 1],
> [3, 1],
> [4, 1],
> [5, 1],
> [6, -1],
> [7, -1]]
>>> import numpy as N
BBands wrote:
>If I have a NumPy array like so:
>
>[[1, 12],
> [2, 13],
> [3, 14],
> [4, 15],
> [5, 16],
> [6, 15],
> [7, 14]]
>
>How can I do an inplace diff, ending up with this?
>
>[[1, 0],
> [2, 1],
> [3, 1],
> [4, 1],
> [5, 1],
> [6, -1],
> [7, -1]]
>
>
Probably can be done (but it's a bit
If I have a NumPy array like so:
[[1, 12],
[2, 13],
[3, 14],
[4, 15],
[5, 16],
[6, 15],
[7, 14]]
How can I do an inplace diff, ending up with this?
[[1, 0],
[2, 1],
[3, 1],
[4, 1],
[5, 1],
[6, -1],
[7, -1]]
Also, can I covert to natural logs in place?
[[1, 2.4849],
[2, 2.5649],
[