BUG: Inconsistency in DataFrame.where between inplace and not inplace with na like value for StringArray #46512
Labels
Bug
ExtensionArray
Extending pandas with custom dtypes or arrays.
Strings
String extension data type and string data
Pandas version checks
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 main branch of pandas.
Reproducible Example
Issue Description
code sample based on #46366
Expected Behavior
The behavior for the
inplace=False
case has changed from 1.4.1 to main since #45168 allows other na values in the StringArray Constructor.Whether this is correct for the DataFrame.where case may need discussion. Either way, the results for the
inplace=True
case look incorrect to me and should be consistent with theinplace=False
case.Installed Versions
.
The text was updated successfully, but these errors were encountered: