From 11f94eae800deeea770cb9d88a58088dc73c0ae4 Mon Sep 17 00:00:00 2001 From: Jerry Wu Date: Sun, 29 Oct 2023 14:32:43 +0800 Subject: [PATCH] docs(python): Minor tweak in code example in section Expressions/Missing data (#12080) --- docs/src/python/user-guide/expressions/null.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/docs/src/python/user-guide/expressions/null.py b/docs/src/python/user-guide/expressions/null.py index 4641773bbb85..3c283a751c17 100644 --- a/docs/src/python/user-guide/expressions/null.py +++ b/docs/src/python/user-guide/expressions/null.py @@ -40,12 +40,8 @@ # --8<-- [start:fill] -fill_literal_df = ( - df.with_columns( - pl.col("col2").fill_null( - pl.lit(2), - ), - ), +fill_literal_df = df.with_columns( + pl.col("col2").fill_null(pl.lit(2)), ) print(fill_literal_df) # --8<-- [end:fill]