MCPcopy Index your code
hub / github.com/numpy/numpy / find_duplicate

Function find_duplicate

numpy/_core/records.py:47–53  ·  view source on GitHub ↗

Find duplication in a list, return a list of duplicated elements

(list)

Source from the content-addressed store, hash-verified

45
46@set_module('numpy.rec')
47def find_duplicate(list):
48 """Find duplication in a list, return a list of duplicated elements"""
49 return [
50 item
51 for item, counts in Counter(list).items()
52 if counts > 1
53 ]
54
55
56@set_module('numpy.rec')

Callers 1

_setfieldnamesMethod · 0.85

Calls 1

itemsMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…