Skip to content

Commit

Permalink
style changes for linter
Browse files Browse the repository at this point in the history
  • Loading branch information
economy authored and TomAugspurger committed May 30, 2017
1 parent 7c20d38 commit 185ab43
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pandas/tests/reshape/test_tile.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,18 +211,19 @@ def test_cut_pass_labels(self):

result = cut(arr, bins, labels=labels)
exp = Categorical(['Medium'] + 4 * ['Small'] + ['Medium', 'Large'],
categories=labels,
categories=labels,
ordered=True)
tm.assert_categorical_equal(result, exp)

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)
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))
exp = cut(arr, 3, labels=Categorical(labels, categories=labels,
ordered=True))
tm.assert_categorical_equal(result, exp)

def test_qcut_include_lowest(self):
Expand Down

0 comments on commit 185ab43

Please sign in to comment.