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

Method test_inner_join

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

join_byFunction · 0.90
assert_equalFunction · 0.90

Tested by

no test coverage detected