[Numpy-discussion] breaking array indices

Mathew Yeates mat.yeates at gmail.com
Thu Jun 2 13:11:13 EDT 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