MCPcopy Create free account
hub / github.com/numpy/numpy / find_duplicate

Function find_duplicate

numpy/core/records.py:78–84  ·  view source on GitHub ↗

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

(list)

Source from the content-addressed store, hash-verified

76
77
78def find_duplicate(list):
79 """Find duplication in a list, return a list of duplicated elements"""
80 return [
81 item
82 for item, counts in Counter(list).items()
83 if counts > 1
84 ]
85
86
87@set_module('numpy')

Callers 1

_setfieldnamesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected