class documentation

class TestSetOps:

View In Hierarchy

Undocumented

Method test​_ediff1d Undocumented
Method test​_ediff1d​_forbidden​_type​_casts Undocumented
Method test​_ediff1d​_scalar​_handling Undocumented
Method test​_in1d Undocumented
Method test​_in1d​_both​_arrays​_are​_object Undocumented
Method test​_in1d​_both​_arrays​_have​_structured​_dtype Undocumented
Method test​_in1d​_char​_array Undocumented
Method test​_in1d​_first​_array​_is​_object Undocumented
Method test​_in1d​_invert Test in1d's invert parameter
Method test​_in1d​_ravel Undocumented
Method test​_in1d​_second​_array​_is​_object Undocumented
Method test​_in1d​_with​_arrays​_containing​_tuples Undocumented
Method test​_intersect1d Undocumented
Method test​_intersect1d​_array​_like Undocumented
Method test​_intersect1d​_indices Undocumented
Method test​_isin Undocumented
Method test​_manyways Undocumented
Method test​_setdiff1d Undocumented
Method test​_setdiff1d​_char​_array Undocumented
Method test​_setdiff1d​_unique Undocumented
Method test​_setxor1d Undocumented
Method test​_union1d Undocumented
def test_ediff1d(self):

Undocumented

@pytest.mark.parametrize('ary, prepend, append, expected', [(np.array([1, 2, 3], dtype=np.int64), None, np.nan, 'to_end'), (np.array([1, 2, 3], dtype=np.int64), np.array([5, 7, 2], dtype=np.float32), None, 'to_begin'), (np.array([1.0, 3.0, 9.0], dtype=np.int8), np.nan, np.nan, 'to_begin')])
def test_ediff1d_forbidden_type_casts(self, ary, prepend, append, expected):

Undocumented

@pytest.mark.parametrize('ary,prepend,append,expected', [(np.array([1, 2, 3], dtype=np.int16), 2**16, 2**16+4, np.array([0, 1, 1, 4], dtype=np.int16)), (np.array([1, 2, 3], dtype=np.float32), np.array([5], dtype=np.float64), None, np.array([5, 1, 1], dtype=np.float32)), (np.array([1, 2, 3], dtype=np.int32), 0, 0, np.array([0, 1, 1, 0], dtype=np.int32)), (np.array([1, 2, 3], dtype=np.int64), 3, -9, np.array([3, 1, 1, -9], dtype=np.int64))])
def test_ediff1d_scalar_handling(self, ary, prepend, append, expected):

Undocumented

def test_in1d(self):

Undocumented

def test_in1d_both_arrays_are_object(self):

Undocumented

def test_in1d_both_arrays_have_structured_dtype(self):

Undocumented

def test_in1d_char_array(self):

Undocumented

def test_in1d_first_array_is_object(self):

Undocumented

def test_in1d_invert(self):
Test in1d's invert parameter
def test_in1d_ravel(self):

Undocumented

def test_in1d_second_array_is_object(self):

Undocumented

def test_in1d_with_arrays_containing_tuples(self):

Undocumented

def test_intersect1d(self):

Undocumented

def test_intersect1d_array_like(self):

Undocumented

def test_intersect1d_indices(self):

Undocumented

def test_isin(self):

Undocumented

def test_manyways(self):

Undocumented

def test_setdiff1d(self):

Undocumented

def test_setdiff1d_char_array(self):

Undocumented

def test_setdiff1d_unique(self):

Undocumented

def test_setxor1d(self):

Undocumented

def test_union1d(self):

Undocumented