Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

count unique values numpy

number_list = numpy.array([1, 1, 2, 3, 4, 4, 1])
(unique, counts) = numpy.unique(number_list, return_counts=True)
Source by www.kite.com #
 
PREVIOUS NEXT
Tagged: #count #unique #values #numpy
ADD COMMENT
Topic
Name
8+1 =