You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
InvalidOperationError: range must be decreasing if 'step' is negative
if ranges 1->3 = [1, 2] and 3->1 = []
then with step=-1 should be: 1->3 = [] and 3->1 = [3, 2] and not error
PanicException: capacity overflow
going from 1/2/3 down to zero with step=-1 should work and not panic 1->0 = [1], 2->0 = [2, 1], 3->0 = [3, 2, 1]
going from 1/2/3 to 1 should work and not panic 1->1 = [], 2->1 = [], 3->1 = []
Expected behavior
All examples should work without exception or panic
Installed versions
Replace this line with the output of pl.show_versions(). Leave the backticks in place.
The text was updated successfully, but these errors were encountered:
Checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of Polars.
Reproducible example
Log output
No response
Issue description
InvalidOperationError: range must be decreasing if 'step' is negative
if ranges
1->3 = [1, 2]
and3->1 = []
then with
step=-1
should be:1->3 = []
and3->1 = [3, 2]
and not errorPanicException: capacity overflow
going from
1/2/3
down to zero withstep=-1
should work and not panic1->0 = [1]
,2->0 = [2, 1]
,3->0 = [3, 2, 1]
going from
1/2/3
to1
should work and not panic1->1 = []
,2->1 = []
,3->1 = []
Expected behavior
All examples should work without exception or panic
Installed versions
The text was updated successfully, but these errors were encountered: