MCPcopy
hub / github.com/pandas-dev/pandas / test_mixed_integer

Method test_mixed_integer

pandas/tests/test_sorting.py:406–410  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

404 tm.assert_numpy_array_equal(result_codes, expected_codes)
405
406 def test_mixed_integer(self):
407 values = np.array(["b", 1, 0, "a", 0, "b"], dtype=object)
408 result = safe_sort(values)
409 expected = np.array([0, 0, 1, "a", "b", "b"], dtype=object)
410 tm.assert_numpy_array_equal(result, expected)
411
412 def test_mixed_integer_with_codes(self):
413 values = np.array(["b", 1, 0, "a"], dtype=object)

Callers

nothing calls this directly

Calls 2

safe_sortFunction · 0.90
arrayMethod · 0.45

Tested by

no test coverage detected