@@ -1092,7 +1092,7 @@ def _getitem_iterable(self, key, axis=0):
1092
1092
if is_bool_indexer (key ):
1093
1093
key = check_bool_indexer (labels , key )
1094
1094
inds , = key .nonzero ()
1095
- return self .obj .take (inds , axis = axis , convert = False )
1095
+ return self .obj .take (inds , axis = axis )
1096
1096
else :
1097
1097
# Have the index compute an indexer or return None
1098
1098
# if it cannot handle; we only act on all found values
@@ -1125,15 +1125,14 @@ def _getitem_iterable(self, key, axis=0):
1125
1125
keyarr )
1126
1126
1127
1127
if new_indexer is not None :
1128
- result = self .obj .take (indexer [indexer != - 1 ], axis = axis ,
1129
- convert = False )
1128
+ result = self .obj .take (indexer [indexer != - 1 ], axis = axis )
1130
1129
1131
1130
result = result ._reindex_with_indexers (
1132
1131
{axis : [new_target , new_indexer ]},
1133
1132
copy = True , allow_dups = True )
1134
1133
1135
1134
else :
1136
- result = self .obj .take (indexer , axis = axis , convert = False )
1135
+ result = self .obj .take (indexer , axis = axis )
1137
1136
1138
1137
return result
1139
1138
@@ -1263,7 +1262,7 @@ def _get_slice_axis(self, slice_obj, axis=0):
1263
1262
if isinstance (indexer , slice ):
1264
1263
return self ._slice (indexer , axis = axis , kind = 'iloc' )
1265
1264
else :
1266
- return self .obj .take (indexer , axis = axis , convert = False )
1265
+ return self .obj .take (indexer , axis = axis )
1267
1266
1268
1267
1269
1268
class _IXIndexer (_NDFrameIndexer ):
@@ -1348,7 +1347,7 @@ def _getbool_axis(self, key, axis=0):
1348
1347
key = check_bool_indexer (labels , key )
1349
1348
inds , = key .nonzero ()
1350
1349
try :
1351
- return self .obj .take (inds , axis = axis , convert = False )
1350
+ return self .obj .take (inds , axis = axis )
1352
1351
except Exception as detail :
1353
1352
raise self ._exception (detail )
1354
1353
@@ -1365,7 +1364,7 @@ def _get_slice_axis(self, slice_obj, axis=0):
1365
1364
if isinstance (indexer , slice ):
1366
1365
return self ._slice (indexer , axis = axis , kind = 'iloc' )
1367
1366
else :
1368
- return self .obj .take (indexer , axis = axis , convert = False )
1367
+ return self .obj .take (indexer , axis = axis )
1369
1368
1370
1369
1371
1370
class _LocIndexer (_LocationIndexer ):
@@ -1703,7 +1702,7 @@ def _get_slice_axis(self, slice_obj, axis=0):
1703
1702
if isinstance (slice_obj , slice ):
1704
1703
return self ._slice (slice_obj , axis = axis , kind = 'iloc' )
1705
1704
else :
1706
- return self .obj .take (slice_obj , axis = axis , convert = False )
1705
+ return self .obj .take (slice_obj , axis = axis )
1707
1706
1708
1707
def _get_list_axis (self , key , axis = 0 ):
1709
1708
"""
@@ -1719,7 +1718,7 @@ def _get_list_axis(self, key, axis=0):
1719
1718
Series object
1720
1719
"""
1721
1720
try :
1722
- return self .obj .take (key , axis = axis , convert = False )
1721
+ return self .obj .take (key , axis = axis )
1723
1722
except IndexError :
1724
1723
# re-raise with different error message
1725
1724
raise IndexError ("positional indexers are out-of-bounds" )
0 commit comments