[Numpy-discussion] breaking array indices

Mathew Yeates mat.yeates@gmail....
Thu Jun 2 12:11:13 CDT 2011


Hi
I have indices into an array I'd like split so they are sequential
e.g.
[1,2,3,10,11] -> [1,2,3],[10,11]

How do I do this?

-Mathew


More information about the NumPy-Discussion mailing list