I have a 2D numpy array like this
[[ 569 897]
[ 570 898]
[ 570 900]
[ 571 901]
[ 571 905]
[ 572 906]]
I want the elements which have equal values in the first column to be grouped together in the following way.
[[ 569 897]
[[ 570 898]
[ 570 900]]
[[ 571 901]
[ 571 905]]
[ 572 906] ]
How should i do so?