Skip to content

Commit c8e9b40

Browse files
committed
Merge pull request #7668 from pydata/mi_slicing2
BUG: windows failure on GH7667
2 parents 56fc093 + 58f20b7 commit c8e9b40

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pandas/core/indexing.py

+3
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,9 @@ def _setitem_with_indexer(self, indexer, value):
348348
"with a different length than the value"
349349
)
350350

351+
# make sure we have an ndarray
352+
value = getattr(value,'values',value).ravel()
353+
351354
# we can directly set the series here
352355
# as we select a slice indexer on the mi
353356
idx = index._convert_slice_indexer(idx)

0 commit comments

Comments
 (0)