```python-traceback
Traceback (most recent call last):
File "/root/venv/lib/python3.10/site-packages/modin/pandas/utils.py", line 303, in broadcast_item
return np.broadcast_to(item, to_shape), dtypes
File "/root/venv/lib/python3.10/site-packages/numpy/lib/stride_tricks.py", line 413, in broadcast_to
return _broadcast_to(array, shape, subok=subok, readonly=True)
File "/root/venv/lib/python3.10/site-packages/numpy/lib/stride_tricks.py", line 349, in _broadcast_to
it = np.nditer(
ValueError: operands could not be broadcast together with remapped shapes [original->remapped]: (3,) and requested shape (1,1)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 1, in
File "/root/venv/lib/python3.10/site-packages/modin/logging/logger_decorator.py", line 144, in run_and_log
return obj(*args, **kwargs)
File "/root/venv/lib/python3.10/site-packages/modin/pandas/indexing.py", line 813, in __setitem__
self._set_item_existing_loc(row_loc, col_loc, item)
File "/root/venv/lib/python3.10/site-packages/modin/logging/logger_decorator.py", line 144, in run_and_log
return obj(*args, **kwargs)
File "/root/venv/lib/python3.10/site-packages/modin/pandas/indexing.py", line 881, in _set_item_existing_loc
self._setitem_positional(
File "/root/venv/lib/python3.10/site-packages/modin/logging/logger_decorator.py", line 144, in run_and_log
return obj(*args, **kwargs)
File "/root/venv/lib/python3.10/site-packages/modin/pandas/indexing.py", line 448, in _setitem_positional
new_qc = self.qc.write_items(row_lookup, col_lookup, item)
File "/root/venv/lib/python3.10/site-packages/modin/logging/logger_decorator.py", line 144, in run_and_log
return obj(*args, **kwargs)
File "/root/venv/lib/python3.10/site-packages/modin/core/storage_formats/pandas/query_compiler_caster.py", line 157, in cast_args
return obj(*args, **kwargs)
File "/root/venv/lib/python3.10/site-packages/modin/core/storage_formats/pandas/query_compiler.py", line 4639, in write_items
broadcasted_item, broadcasted_dtypes = broadcast_item(
File "/root/venv/lib/python3.10/site-packages/modin/pandas/utils.py", line 306, in broadcast_item
raise ValueError(
ValueError: could not broadcast input array from shape (3,) into shape (1, 1)
```
Modin version checks
[X] I have checked that this issue has not already been reported.
[X] I have confirmed this bug exists on the latest released version of Modin.
[X] I have confirmed this bug exists on the main branch of Modin. (In order to do this you can follow this guide.)
Reproducible Example
Issue Description
This is related to https://github.com/modin-project/modin/issues/4111 which seems to have been incorrectly closed. The bug still exists with the latest version
0.32
.Expected Behavior
Modin should allow assignment like pandas does.
Error Logs
Installed Versions