File tree 3 files changed +5
-3
lines changed
3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -2734,8 +2734,8 @@ def _non_reducing_slice(slice_):
2734
2734
def pred (part ):
2735
2735
# true when slice does *not* reduce, False when part is a tuple,
2736
2736
# i.e. MultiIndex slice
2737
- return (isinstance (part , slice ) or is_list_like (part ))\
2738
- and not isinstance (part , tuple )
2737
+ return (( isinstance (part , slice ) or is_list_like (part ))
2738
+ and not isinstance (part , tuple ) )
2739
2739
2740
2740
if not is_list_like (slice_ ):
2741
2741
if not isinstance (slice_ , slice ):
Original file line number Diff line number Diff line change @@ -813,6 +813,7 @@ def test_non_reducing_slice(self):
813
813
assert isinstance (df .loc [tslice_ ], DataFrame )
814
814
815
815
def test_non_reducing_slice_on_multiindex (self ):
816
+ # GH 19861
816
817
dic = {
817
818
('a' , 'd' ): [1 , 4 ],
818
819
('a' , 'c' ): [2 , 3 ],
Original file line number Diff line number Diff line change @@ -275,7 +275,8 @@ def f(x):
275
275
assert result == expected
276
276
277
277
def test_applymap_subset_multiindex (self ):
278
- # https://github.com/pandas-dev/pandas/issues/19861
278
+ # GH 19861
279
+ # Smoke test for applymap
279
280
def color_negative_red (val ):
280
281
"""
281
282
Takes a scalar and returns a string with
You can’t perform that action at this time.
0 commit comments