class documentation

class TestSetOps: (source)

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_boolean Test that in1d works for boolean input
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_errors Test that in1d raises expected errors.
Method test_in1d_first_array_is_object Undocumented
Method test_in1d_hit_alternate_algorithm Hit the standard isin code with integers
Method test_in1d_invert Test in1d's invert parameter
Method test_in1d_mixed_boolean Test that in1d works as expected for bool/int input.
Method test_in1d_mixed_dtype Test that in1d works as expected for mixed dtype input.
Method test_in1d_ravel Undocumented
Method test_in1d_second_array_is_object Undocumented
Method test_in1d_table_timedelta_fails Undocumented
Method test_in1d_timedelta Test that in1d works for timedelta input
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): (source)

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): (source)

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): (source)

Undocumented

@pytest.mark.parametrize('kind', [None, 'sort', 'table'])
def test_in1d(self, kind): (source)

Undocumented

@pytest.mark.parametrize('kind', [None, 'sort', 'table'])
def test_in1d_boolean(self, kind): (source)

Test that in1d works for boolean input

def test_in1d_both_arrays_are_object(self): (source)

Undocumented

def test_in1d_both_arrays_have_structured_dtype(self): (source)

Undocumented

def test_in1d_char_array(self): (source)

Undocumented

def test_in1d_errors(self): (source)

Test that in1d raises expected errors.

def test_in1d_first_array_is_object(self): (source)

Undocumented

def test_in1d_hit_alternate_algorithm(self): (source)

Hit the standard isin code with integers

@pytest.mark.parametrize('kind', [None, 'sort', 'table'])
def test_in1d_invert(self, kind): (source)

Test in1d's invert parameter

@pytest.mark.parametrize('kind', [None, 'sort', 'table'])
def test_in1d_mixed_boolean(self, kind): (source)

Test that in1d works as expected for bool/int input.

@pytest.mark.parametrize('dtype1,dtype2', [(np.int8, np.int16), (np.int16, np.int8), (np.uint8, np.uint16), (np.uint16, np.uint8), (np.uint8, np.int16), (np.int16, np.uint8)])
@pytest.mark.parametrize('kind', [None, 'sort', 'table'])
def test_in1d_mixed_dtype(self, dtype1, dtype2, kind): (source)

Test that in1d works as expected for mixed dtype input.

@pytest.mark.parametrize('kind', [None, 'sort', 'table'])
def test_in1d_ravel(self, kind): (source)

Undocumented

def test_in1d_second_array_is_object(self): (source)

Undocumented

def test_in1d_table_timedelta_fails(self): (source)

Undocumented

@pytest.mark.parametrize('kind', [None, 'sort'])
def test_in1d_timedelta(self, kind): (source)

Test that in1d works for timedelta input

def test_in1d_with_arrays_containing_tuples(self): (source)

Undocumented

def test_intersect1d(self): (source)

Undocumented

def test_intersect1d_array_like(self): (source)

Undocumented

def test_intersect1d_indices(self): (source)

Undocumented

@pytest.mark.parametrize('kind', [None, 'sort', 'table'])
def test_isin(self, kind): (source)

Undocumented

def test_manyways(self): (source)

Undocumented

def test_setdiff1d(self): (source)

Undocumented

def test_setdiff1d_char_array(self): (source)

Undocumented

def test_setdiff1d_unique(self): (source)

Undocumented

def test_setxor1d(self): (source)

Undocumented

def test_union1d(self): (source)

Undocumented