Skip to content

Commit 46f1d66

Browse files
More blackening
1 parent 213d59a commit 46f1d66

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

pandas/tests/indexing/test_categorical.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -619,9 +619,7 @@ def test_reindexing(self):
619619
assert_frame_equal(result, expected, check_index_type=True)
620620

621621
# give back the type of categorical that we received
622-
result = df.reindex(
623-
Categorical(["a", "e"], categories=cats, ordered=True)
624-
)
622+
result = df.reindex(Categorical(["a", "e"], categories=cats, ordered=True))
625623
expected = DataFrame(
626624
{"A": [0, np.nan], "B": Series(list("ae")).astype(CDT(cats, ordered=True))}
627625
).set_index("B")

pandas/tests/series/test_operators.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,8 @@ def test_logical_ops_with_index(self, op):
277277
"op, index_op",
278278
[
279279
(ops.rand_, Index.intersection),
280-
(ops.ror_, Index.union),
281-
(ops.rxor, Index.symmetric_difference),
280+
(ops.ror_, Index.union),
281+
(ops.rxor, Index.symmetric_difference),
282282
],
283283
)
284284
def test_reversed_logical_ops_with_index(self, op, index_op):

0 commit comments

Comments
 (0)