Wednesday, 11 September 2013

How to trim a numpy array?

How to trim a numpy array?

Say I have a numpy array:
[[1,2],
[3,4],
[5,6,7]]
Is there any compact method to trim the array and make it aligned along
the second dimension, i.e.
[[1,2],
[3,4],
[5,6]]

No comments:

Post a Comment