.first
behind .sort_by.slice
gets wrong result.
#18231
Labels
accepted
Ready for implementation
bug
Something isn't working
needs triage
Awaiting prioritization by a maintainer
python
Related to Python Polars
Checks
Reproducible example
Log output
shape: (6, 3) ┌──────┬─────┬─────────┐ │ name ┆ age ┆ country │ │ --- ┆ --- ┆ --- │ │ str ┆ i64 ┆ str │ ╞══════╪═════╪═════════╡ │ a ┆ 21 ┆ A │ │ b ┆ 31 ┆ A │ │ c ┆ 32 ┆ B │ │ d ┆ 53 ┆ B │ │ e ┆ 45 ┆ B │ │ f ┆ 26 ┆ C │ └──────┴─────┴─────────┘ shape: (3, 2) ┌─────────┬───────────┐ │ country ┆ name │ │ --- ┆ --- │ │ str ┆ list[str] │ ╞═════════╪═══════════╡ │ A ┆ [] │ │ B ┆ ["d"] │ │ C ┆ [] │ └─────────┴───────────┘ shape: (3, 2) ┌─────────┬──────┐ ... │ A ┆ null │ │ B ┆ e │ │ C ┆ null │ └─────────┴──────┘
Issue description
The result of
.first()
should bed
in list ofout1
, note
.Expected behavior
get correctly result
Installed versions
The text was updated successfully, but these errors were encountered: