class documentation
class TestSetOps: (source)
Undocumented
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Test that in1d works for boolean input |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Test that in1d raises expected errors. |
Method | test |
Undocumented |
Method | test |
Hit the standard isin code with integers |
Method | test |
Test in1d's invert parameter |
Method | test |
Test that in1d works as expected for bool/int input. |
Method | test |
Test that in1d works as expected for mixed dtype input. |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Test that in1d works for timedelta input |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
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) ¶
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) ¶
def test_ediff1d_scalar_handling(self, ary, prepend, append, expected): (source) ¶
Undocumented
@pytest.mark.parametrize( 'kind', [ None, 'sort', 'table'])
def test_in1d_boolean(self, kind): (source) ¶
def test_in1d_boolean(self, kind): (source) ¶
Test that in1d works for boolean input
@pytest.mark.parametrize( 'kind', [ None, 'sort', 'table'])
def test_in1d_invert(self, kind): (source) ¶
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) ¶
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) ¶
@pytest.mark.parametrize(
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) ¶
def test_in1d_ravel(self, kind): (source) ¶
Undocumented