Skip to content

Commit 8447ff7

Browse files
committed
FIX-#2537: Account for Modin Series in .loc[] assignment
Signed-off-by: Vasilij Litvinov <vasilij.n.litvinov@intel.com>
1 parent 4beb189 commit 8447ff7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modin/pandas/indexing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ def _broadcast_item(self, row_lookup, col_lookup, item, to_shape):
384384
"""
385385
# It is valid to pass a DataFrame or Series to __setitem__ that is larger than
386386
# the target the user is trying to overwrite. This
387-
if isinstance(item, (pandas.Series, pandas.DataFrame, DataFrame)):
387+
if isinstance(item, (pandas.Series, pandas.DataFrame, Series, DataFrame)):
388388
if not all(idx in item.index for idx in row_lookup):
389389
raise ValueError(
390390
"Must have equal len keys and value when setting with "

0 commit comments

Comments
 (0)