From 708a8601f0720d0755612f6051cf79c352c368ee Mon Sep 17 00:00:00 2001 From: eitsupi Date: Sun, 15 Sep 2024 16:26:03 +0000 Subject: [PATCH] docs(python): fix literal type mapping --- py-polars/polars/functions/lit.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/py-polars/polars/functions/lit.py b/py-polars/polars/functions/lit.py index e1a6222deb15..98e4cc6d6b23 100644 --- a/py-polars/polars/functions/lit.py +++ b/py-polars/polars/functions/lit.py @@ -42,11 +42,11 @@ def lit( ----- Expected datatypes: - - `pl.lit([])` -> empty Series Float32 - - `pl.lit([1, 2, 3])` -> Series Int64 - - `pl.lit([[]])`-> empty Series List - - `pl.lit([[1, 2, 3]])` -> Series List - - `pl.lit(None)` -> Series Null + - `pl.lit([])` -> empty List + - `pl.lit([1, 2, 3])` -> List + - `pl.lit(pl.Series([]))`-> empty Series Null + - `pl.lit(pl.Series([1, 2, 3]))` -> Series Int64 + - `pl.lit(None)` -> Null Examples --------