You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are adding a new "warning" mode for the Copy-on-Write option (#48998):
pd.options.mode.copy_on_write = "warn"
which will raise a warning in every case that you are doing a setitem operation that will change behaviour when Copy-on-Write is enabled (i.e. when you are setting on an object that shares a view with another object, and with current pandas would also update that other object)
This is a tracking issue for the subtasks to complete this:
mgr.iset? (mostly used from mgr.column_setitem which already raises the warning?)
mgr._iset_single? (this seems only covered by test_internals.py::TestBlockManager::test_get_numeric_data/test_get_bool_data, and so this is probably not possible to get to through public APIs)
We are adding a new "warning" mode for the Copy-on-Write option (#48998):
which will raise a warning in every case that you are doing a setitem operation that will change behaviour when Copy-on-Write is enabled (i.e. when you are setting on an object that shares a view with another object, and with current pandas would also update that other object)
This is a tracking issue for the subtasks to complete this:
mgr.setitem_inplace
): CoW: add warning mode for cases that will change behaviour #55428mgr.setitem
): CoW warning mode: add warning for single block setitem #55838mgr.column_setitem
): CoW warning mode: setting values into single column of DataFrame #56020mgr.iset
? (mostly used frommgr.column_setitem
which already raises the warning?)mgr._iset_single
? (this seems only covered bytest_internals.py::TestBlockManager::test_get_numeric_data/test_get_bool_data
, and so this is probably not possible to get to through public APIs)ser[0:2] += 1
) -> CoW: Remove false positive warnings for inplace operators #56242In addition, there are also a bunch of remaining
# TODO(CoW-warn)
to resolve.The text was updated successfully, but these errors were encountered: