From 96274e3a5980c50e01ed45ac39937717c5a9c8c2 Mon Sep 17 00:00:00 2001 From: Jenny Sahng <6475953+jennynz@users.noreply.github.com> Date: Thu, 10 Oct 2024 12:23:24 +1300 Subject: [PATCH] docs: fix sign in pandas example of column assignemnt --- docs/source/user-guide/migration/pandas.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/user-guide/migration/pandas.md b/docs/source/user-guide/migration/pandas.md index 5fa435278949..8d805daa51a3 100644 --- a/docs/source/user-guide/migration/pandas.md +++ b/docs/source/user-guide/migration/pandas.md @@ -175,7 +175,7 @@ the values in column `a` based on a condition. When the value in column `c` is e In pandas this would be: ```python -df.assign(a=lambda df_: df_.a.where(df_.c != 2, df_.b)) +df.assign(a=lambda df_: df_.a.where(df_.c == 2, df_.b)) ``` while in Polars this would be: