Closed
Description
Describe the bug
To perform complicated in-place operations, one can do df.loc[:] = ...
, to simply assign the updated array. This is currently unsupported by pandas-stubs
.
To Reproduce
from pandas import DataFrame, Series
foo = Series([1, 2, 3])
foo.loc[:] = 1 + foo # [call-overload]
bar = DataFrame([1, 2, 3])
bar.loc[:] = 1 + bar # [call-overload]
Please complete the following information:
- pandas 1.5.3
- pandas-stubs 1.5.3.230304