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

Method test_inner_join

numpy/lib/tests/test_recfunctions.py:811–820  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

809 return a, b
810
811 def test_inner_join(self):
812 # Basic test of join_by
813 a, b = self._create_arrays()
814 test = join_by('a', a, b, jointype='inner')
815 control = np.array([(5, 55, 65, 105, 100), (6, 56, 66, 106, 101),
816 (7, 57, 67, 107, 102), (8, 58, 68, 108, 103),
817 (9, 59, 69, 109, 104)],
818 dtype=[('a', int), ('b1', int), ('b2', int),
819 ('c', int), ('d', int)])
820 assert_equal(test, control)
821
822 def test_join(self):
823 a, b = self._create_arrays()

Callers

nothing calls this directly

Calls 3

_create_arraysMethod · 0.95
join_byFunction · 0.90
assert_equalFunction · 0.90

Tested by

no test coverage detected