Skip to content

Commit b9ab8d3

Browse files
authored
Merge pull request #5 from Giftlin/Giftlin-lint-error-patch
Lint error fix
2 parents f44a09a + 3b40433 commit b9ab8d3

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

pandas/tests/test_categorical.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -59,22 +59,22 @@ def test_getitem_listlike(self):
5959

6060
@pytest.mark.parametrize("method",
6161
[
62-
lambda x: x.cat.set_categories([1, 2, 3]),
63-
lambda x: x.cat.reorder_categories([2, 3, 1], ordered=True),
64-
lambda x: x.cat.rename_categories([1,2,3]),
65-
lambda x: x.cat.remove_unused_categories(),
66-
lambda x: x.cat.remove_categories([2]),
67-
lambda x: x.cat.add_categories([4]),
68-
lambda x: x.cat.as_ordered(),
69-
lambda x: x.cat.as_unordered(),
62+
lambda x: x.cat.set_categories([1, 2, 3]),
63+
lambda x: x.cat.reorder_categories([2, 3, 1]
64+
, ordered=True),
65+
lambda x: x.cat.rename_categories([1,2, 3]),
66+
lambda x: x.cat.remove_unused_categories(),
67+
lambda x: x.cat.remove_categories([2]),
68+
lambda x: x.cat.add_categories([4]),
69+
lambda x: x.cat.as_ordered(),
70+
lambda x: x.cat.as_unordered(),
7071
])
7172
def test_getname_categorical_accessor(self, method):
7273
s = pd.Series([1, 2, 3], name='A').astype('category')
7374
expected = 'A'
7475
result = method(s).name
7576
assert result == expected
76-
77-
77+
 
7878
def test_getitem_category_type(self):
7979
# GH 14580
8080
# test iloc() on Series with Categorical data

0 commit comments

Comments
 (0)