Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: support negative index, multislice in tidyselect #430

Merged
merged 7 commits into from Aug 26, 2022

Conversation

machow
Copy link
Owner

@machow machow commented Jul 16, 2022

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)

Notes:

  • Moves tidyselection to siuba.dply.tidyselect.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant