File tree 1 file changed +13
-13
lines changed
1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -855,20 +855,20 @@ def _get_with(self, key):
855
855
return self ._get_values (key )
856
856
elif key_type == 'boolean' :
857
857
return self ._get_values (key )
858
- else :
859
- try :
860
- # handle the dup indexing case (GH 4246)
861
- if isinstance (key , (list , tuple )):
862
- return self .loc [key ]
863
858
864
- return self .reindex (key )
865
- except Exception :
866
- # [slice(0, 5, None)] will break if you convert to ndarray,
867
- # e.g. as requested by np.median
868
- # hack
869
- if isinstance (key [0 ], slice ):
870
- return self ._get_values (key )
871
- raise
859
+ try :
860
+ # handle the dup indexing case (GH 4246)
861
+ if isinstance (key , (list , tuple )):
862
+ return self .loc [key ]
863
+
864
+ return self .reindex (key )
865
+ except Exception :
866
+ # [slice(0, 5, None)] will break if you convert to ndarray,
867
+ # e.g. as requested by np.median
868
+ # hack
869
+ if isinstance (key [0 ], slice ):
870
+ return self ._get_values (key )
871
+ raise
872
872
873
873
def _get_values_tuple (self , key ):
874
874
# mpl hackaround
You can’t perform that action at this time.
0 commit comments