-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
REF: share BooleanArray tests with MaskedArray #54422
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, just a question
c = b | ||
na = np.nan | ||
dfg = pd.array([b, b, na, na, a, a, b, c], dtype="boolean") | ||
|
||
df = DataFrame({"A": [1, 1, 2, 2, 3, 3, 1], "B": dfg[:-1]}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: I see this was copied from a more generic test, should we clean up here? I.e. remove occurrences of c
and dfg[:-1] -> dfg
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch, updated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Thanks @jbrockmendel |
* REF: share BooleanArray tests with other Masked cases * REF: test_masked_numeric->test_masked * remove unnecessary slicing
mirror the layout in the pyarrow tests.