const-ae / const-ae/polarstation
chop output differs between eager and lazy mode
- Dominant language
- Python
- Stars
- 1
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
```
df
.lazy()
.group_by('a')
.agg(mean = pl.col('b').mean())
.ps.with_columns(pl.col('mean').ps_chop.chop(breaks=[-0.01,0,0.05,0.15,1],left_closed=False).ps_enum.drop_unused())
.collect()
```
differs from
```
df
.group_by('a')
.agg(mean = pl.col('b').mean())
.ps.with_columns(pl.col('mean').ps_chop.chop(breaks=[-0.01,0,0.05,0.15,1],left_closed=False).ps_enum.drop_unused())
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Run both snippets with the reported data and compare the eager and lazy results, including the grouped mean and the chopped enum column. Start by tracing the ps_chop and ps_enum operations used by with_columns; done means eager and lazy execution produce the same output for this reproduction.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- data
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100