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