module documentation

Undocumented

Function test_float_to_string_cast Undocumented
Function test_mixed_string_comparison_ufuncs_fail Undocumented
Function test_mixed_string_comparisons_ufuncs_with_cast Undocumented
Function test_string_comparisons Undocumented
Function test_string_comparisons_empty Undocumented
Constant COMPARISONS Undocumented
@pytest.mark.parametrize('str_dt', ['S', 'U'])
@pytest.mark.parametrize('float_dt', np.typecodes['AllFloat'])
def test_float_to_string_cast(str_dt, float_dt): (source)

Undocumented

@pytest.mark.parametrize(['op', 'ufunc', 'sym'], COMPARISONS)
def test_mixed_string_comparison_ufuncs_fail(op, ufunc, sym): (source)

Undocumented

@pytest.mark.parametrize(['op', 'ufunc', 'sym'], COMPARISONS)
def test_mixed_string_comparisons_ufuncs_with_cast(op, ufunc, sym): (source)

Undocumented

@pytest.mark.parametrize(['op', 'ufunc', 'sym'], COMPARISONS)
@pytest.mark.parametrize('dtypes', [('S2', 'S2'), ('S2', 'S10'), ('<U1', '<U1'), ('<U1', '>U1'), ('>U1', '>U1'), ('<U1', '<U10'), ('<U1', '>U10')])
@pytest.mark.parametrize('aligned', [True, False])
def test_string_comparisons(op, ufunc, sym, dtypes, aligned): (source)

Undocumented

@pytest.mark.parametrize(['op', 'ufunc', 'sym'], COMPARISONS)
@pytest.mark.parametrize('dtypes', [('S2', 'S2'), ('S2', 'S10'), ('<U1', '<U1'), ('<U1', '>U10')])
def test_string_comparisons_empty(op, ufunc, sym, dtypes): (source)

Undocumented

COMPARISONS = (source)

Undocumented

Value
[(operator.eq, np.equal, '=='),
 (operator.ne, np.not_equal, '!='),
 (operator.lt, np.less, '<'),
 (operator.le, np.less_equal, '<='),
 (operator.gt, np.greater, '>'),
 (operator.ge, np.greater_equal, '>=')]