Skip to content

Commit

Permalink
docs(python): Fix literal type mapping example in lit docstrings (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
eitsupi authored Sep 22, 2024
1 parent f9e47d4 commit 9766a25
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions py-polars/polars/functions/lit.py
Original file line number Diff line number Diff line change
Expand Up @@ -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<Null>
- `pl.lit([[1, 2, 3]])` -> Series List<i64>
- `pl.lit(None)` -> Series Null
- `pl.lit([])` -> empty List<Null>
- `pl.lit([1, 2, 3])` -> List<i64>
- `pl.lit(pl.Series([]))`-> empty Series Null
- `pl.lit(pl.Series([1, 2, 3]))` -> Series Int64
- `pl.lit(None)` -> Null
Examples
--------
Expand Down

0 comments on commit 9766a25

Please sign in to comment.