Skip to content

Commit 774bc8c

Browse files
committed
use shared idiom
1 parent 9ca140b commit 774bc8c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pandas/core/indexing.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1910,10 +1910,11 @@ def _setitem_with_indexer(self, indexer, value, name: str = "iloc") -> None:
19101910
if isinstance(indexer, tuple):
19111911
nindexer = []
19121912
for i, idx in enumerate(indexer):
1913-
if isinstance(idx, dict):
1913+
idx, missing = convert_missing_indexer(idx)
1914+
if missing:
19141915
# reindex the axis to the new value
19151916
# and set inplace
1916-
key, _ = convert_missing_indexer(idx)
1917+
key = idx
19171918

19181919
# if this is the items axes, then take the main missing
19191920
# path first

0 commit comments

Comments
 (0)