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 --------