@@ -319,7 +319,7 @@ def _setitem_with_indexer(self, indexer, value):
319319 # if there is only one block/type, still have to take split path
320320 # unless the block is one-dimensional or it can hold the value
321321 if not take_split_path and self .obj ._data .blocks :
322- blk , = self .obj ._data .blocks
322+ ( blk ,) = self .obj ._data .blocks
323323 if 1 < blk .ndim : # in case of dict, keys are indices
324324 val = list (value .values ()) if isinstance (value , dict ) else value
325325 take_split_path = not blk ._can_hold_element (val )
@@ -1111,7 +1111,7 @@ def _getitem_iterable(self, key, axis: int):
11111111 if com .is_bool_indexer (key ):
11121112 # A boolean indexer
11131113 key = check_bool_indexer (labels , key )
1114- inds , = key .nonzero ()
1114+ ( inds ,) = key .nonzero ()
11151115 return self .obj .take (inds , axis = axis )
11161116 else :
11171117 # A collection of keys
@@ -1255,7 +1255,7 @@ def _convert_to_indexer(self, obj, axis: int, raise_missing: bool = False):
12551255
12561256 if com .is_bool_indexer (obj ):
12571257 obj = check_bool_indexer (labels , obj )
1258- inds , = obj .nonzero ()
1258+ ( inds ,) = obj .nonzero ()
12591259 return inds
12601260 else :
12611261 # When setting, missing keys are not allowed, even with .loc:
0 commit comments