Skip to content

Commit

Permalink
c
Browse files Browse the repository at this point in the history
  • Loading branch information
nameexhaustion committed Dec 9, 2024
1 parent 0c5cf8f commit 4901216
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions py-polars/tests/unit/operations/test_slice.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,10 +304,10 @@ def test_slice_after_sort_with_nulls_20079() -> None:
def test_slice_pushdown_panic_20216() -> None:
col = pl.col("A")

df = pl.LazyFrame([{"A": "1/1"}])
df = pl.LazyFrame({"A": "1/1"})
df = df.with_columns(col.str.split("/"))
df = df.with_columns(
pl.when(col.is_not_null()).then(col.list.get(0)).otherwise(None)
)

df.collect()
assert_frame_equal(df.collect(), pl.DataFrame({"A": ["1"]}))

0 comments on commit 4901216

Please sign in to comment.