DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python groupby 1d array
n = np.unique(a[:,0]) np.array( [ list(a[a[:,0]==i,1]) for i in n] )
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#python
#groupby
#array
ADD COMMENT
Topic
COMMENT
Name
9+7 =
Submit