BUG: Pandas DataFrame replace() doesn't work if the dataframe has nullable boolean columns #44499
Closed
3 tasks done
Labels
Bug
NA - MaskedArrays
Related to pd.NA and nullable extension arrays
Numeric Operations
Arithmetic, Comparison, and Logical operations
replace
replace method
Milestone
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
I have confirmed this bug exists on the master branch of pandas.
Reproducible Example
Issue Description
When trying to use
pandas.DataFrame.replace()
on a dataframe with several columns including boolean columns where theboolean
(i.e. nullable) dtype has been set explicitly beforehand. When running the above snippet I get the following error:Is this a pandas bug?. Also please note both of the following work fine:
and:
Expected Behavior
the replace should complete successfully
Installed Versions
The text was updated successfully, but these errors were encountered: