diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py index 280c4073b0f94..d387cb647d8c2 100644 --- a/pandas/core/indexing.py +++ b/pandas/core/indexing.py @@ -348,6 +348,9 @@ def _setitem_with_indexer(self, indexer, value): "with a different length than the value" ) + # make sure we have an ndarray + value = getattr(value,'values',value).ravel() + # we can directly set the series here # as we select a slice indexer on the mi idx = index._convert_slice_indexer(idx)