diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 39a940169e1f3..8711d53353185 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -8000,7 +8000,7 @@ def update( if mask.all(): continue - self[col] = expressions.where(mask, this, that) + self.loc[:, col] = expressions.where(mask, this, that) # ---------------------------------------------------------------------- # Data reshaping