siuba icon indicating copy to clipboard operation
siuba copied to clipboard

fix: support negative index, multislice in tidyselect

Open machow opened this issue 1 year ago • 0 comments

Fix tidyselect to support:

from siuba.data import mtcars
from siuba import _, select

# negative indexing
select(mtcars, -1)

# integers in extended slice syntax
select(mtcars, _[0, 1])

Additionally, negating in any position used to be treated as triggering an implicit everything(). Now, only a negation in the first position does that (consistent with R tidyselect)

machow avatar Jul 16 '22 17:07 machow