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

BUG: BooleanArray raising on comparison to string #44533

Merged
merged 2 commits into from
Nov 20, 2021

Conversation

mzeitlin11
Copy link
Member

@mzeitlin11 mzeitlin11 added Bug Numeric Operations Arithmetic, Comparison, and Logical operations replace replace method NA - MaskedArrays Related to pd.NA and nullable extension arrays labels Nov 20, 2021
result = method(other)

if result is NotImplemented:
result = invalid_comparison(self._data, other, op)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This matches what is done in IntegerArray.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great, in a followon if its possible to move these to the base class would be great.

result = method(other)

if result is NotImplemented:
result = invalid_comparison(self._data, other, op)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great, in a followon if its possible to move these to the base class would be great.

@jreback jreback added this to the 1.4 milestone Nov 20, 2021
@jreback jreback merged commit 0f81a63 into pandas-dev:master Nov 20, 2021
@jreback
Copy link
Contributor

jreback commented Nov 20, 2021

thanks @mzeitlin11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug NA - MaskedArrays Related to pd.NA and nullable extension arrays Numeric Operations Arithmetic, Comparison, and Logical operations replace replace method
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: Pandas DataFrame replace() doesn't work if the dataframe has nullable boolean columns
2 participants