Inplace boolean setting on mixed-types with a non np.nan value #20326
Labels
Duplicate Report
Duplicate issue or pull request
Indexing
Related to indexing on series/frames, not to indexes themselves
Missing-data
np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate
Code Sample,
Problem description
Pandas throws a TypeError:
I understand that in-place setting doesn't like to work with the mixed types, but I can't see a reason why it shouldn't work in this case and maybe check in "_check_inplace_setting()" is a bit too tight ?
Expected Output
same as with df.where(-df.isnull(), df_copy)
The text was updated successfully, but these errors were encountered: