diff --git a/pandas/tests/reshape/test_tile.py b/pandas/tests/reshape/test_tile.py index 29441f70e24572..4da7944fc59480 100644 --- a/pandas/tests/reshape/test_tile.py +++ b/pandas/tests/reshape/test_tile.py @@ -218,6 +218,11 @@ def test_cut_pass_labels(self): result = cut(arr, bins, labels=Categorical.from_codes([0, 1, 2], labels)) exp = Categorical.from_codes([1] + 4 * [0] + [1, 2], labels) + tm.assert_categorical_equal(result, exp) + + labels = ['Good', 'Medium', 'Bad'] + result = cut(arr, 3, labels=labels) + exp = cut(arr, 3, labels=Categorical(labels, categories=labels, ordered=True)) tm.assert_categorical_equal(result, exp) def test_qcut_include_lowest(self):