frame and columns can get out of sync #13569
Labels
good first issue
Indexing
Related to indexing on series/frames, not to indexes themselves
Needs Tests
Unit test(s) needed to prevent regressions
Milestone
When using
.loc
to expand a column, the dataframe and the constituent Series can get out of sync. This led to a strange issue in some legacy code I inherited. Because of the copy/view issues I wouldn't have written this particular code myself, but it still cost me some time tracking down what was happening:gives me
which is a little unnerving. I expected that
df
anddf["a"]
would both be unchanged or both be changed. Not sure if it's too much trouble to fix and we should just say "don't move your arm like that", though.@jorisvandenbossche reported the same thing in master; here I'm on 0.18.0.
The text was updated successfully, but these errors were encountered: