@@ -319,7 +319,7 @@ def _setitem_with_indexer(self, indexer, value):
319
319
# if there is only one block/type, still have to take split path
320
320
# unless the block is one-dimensional or it can hold the value
321
321
if not take_split_path and self .obj ._data .blocks :
322
- blk , = self .obj ._data .blocks
322
+ ( blk ,) = self .obj ._data .blocks
323
323
if 1 < blk .ndim : # in case of dict, keys are indices
324
324
val = list (value .values ()) if isinstance (value , dict ) else value
325
325
take_split_path = not blk ._can_hold_element (val )
@@ -1111,7 +1111,7 @@ def _getitem_iterable(self, key, axis: int):
1111
1111
if com .is_bool_indexer (key ):
1112
1112
# A boolean indexer
1113
1113
key = check_bool_indexer (labels , key )
1114
- inds , = key .nonzero ()
1114
+ ( inds ,) = key .nonzero ()
1115
1115
return self .obj .take (inds , axis = axis )
1116
1116
else :
1117
1117
# A collection of keys
@@ -1255,7 +1255,7 @@ def _convert_to_indexer(self, obj, axis: int, raise_missing: bool = False):
1255
1255
1256
1256
if com .is_bool_indexer (obj ):
1257
1257
obj = check_bool_indexer (labels , obj )
1258
- inds , = obj .nonzero ()
1258
+ ( inds ,) = obj .nonzero ()
1259
1259
return inds
1260
1260
else :
1261
1261
# When setting, missing keys are not allowed, even with .loc:
0 commit comments