Skip to content

Commit 6a04c7f

Browse files
Blacker
1 parent 133a7e1 commit 6a04c7f

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

pandas/tests/test_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -991,7 +991,7 @@ def test_bool_indexing(self, indexer_klass, indexer):
991991
tm.assert_series_equal(s[indexer_klass(indexer)], s.iloc[exp_idx])
992992

993993
def test_get_indexer_non_unique_dtype_mismatch(self):
994-
indexes, missing = pd.Index(['A', 'B']).get_indexer_non_unique(pd.Index([0]))
994+
indexes, missing = pd.Index(["A", "B"]).get_indexer_non_unique(pd.Index([0]))
995995
tm.assert_numpy_array_equal(np.array([-1], dtype=np.int64), indexes)
996996
tm.assert_numpy_array_equal(np.array([0], dtype=np.int64), missing)
997997

pandas/util/testing.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1737,8 +1737,7 @@ def makeCategoricalIndex(k=10, n=3, name=None, **kwargs):
17371737
""" make a length k index or n categories """
17381738
x = rands_array(nchars=4, size=n)
17391739
return CategoricalIndex(
1740-
Categorical.from_codes(np.arange(k) % n, categories=x),
1741-
name=name, **kwargs
1740+
Categorical.from_codes(np.arange(k) % n, categories=x), name=name, **kwargs
17421741
)
17431742

17441743

0 commit comments

Comments
 (0)