Skip to content

Commit

Permalink
docs(python): fix literal type mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
eitsupi committed Sep 15, 2024
1 parent 4894e24 commit 708a860
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 708a860

Please sign in to comment.