File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2353,6 +2353,7 @@ def ravel(i):
23532353 return i .ravel () if isinstance (i , np .ndarray ) else i
23542354
23552355 indexer = tuple (map (ravel , indexer ))
2356+
23562357 aligners = [not com .is_null_slice (idx ) for idx in indexer ]
23572358 sum_aligners = sum (aligners )
23582359 single_aligner = sum_aligners == 1
@@ -2370,9 +2371,7 @@ def ravel(i):
23702371
23712372 # we have a frame, with multiple indexers on both axes; and a
23722373 # series, so need to broadcast (see GH5206)
2373- if len (indexer ) == self .ndim and all (
2374- is_sequence (_ ) or isinstance (_ , slice ) for _ in indexer
2375- ):
2374+ if all (is_sequence (_ ) or isinstance (_ , slice ) for _ in indexer ):
23762375 ser_values = ser .reindex (obj .axes [0 ][indexer [0 ]])._values
23772376
23782377 # single indexer
@@ -2400,6 +2399,7 @@ def ravel(i):
24002399 if using_cow :
24012400 return ser
24022401 return ser ._values .copy ()
2402+
24032403 return ser .reindex (new_ix )._values
24042404
24052405 # 2 dims
You can’t perform that action at this time.
0 commit comments