Add a hypothesis test for __getitem__ #1098
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Compares polars
__getitem__
calls with pandas & pyarrow.What type of PR is this? (check all applicable)
Related issues
DataFrame.__getitem__
Β #1008Checklist
Tests addedDocumented the changesIf you have comments or can explain your changes, please do so below.
Putting this up for initial feedback - there's a bunch of cases which pyarrow doesn't support (documented in the test). Do we want to support these cases, or should be instead tighten the test (on pandas as well) and declare these unsupported for now?
Cases:
df[0:1, 'a':'b']
(trivial pairs such asdf[:, 'a':'b']
where one slice is:
are an exception).df[[], "a":]
fails.df[..., ::step]
is unsupported, ieslice(None, None, <something>)