Open
Description
See discussion in #48234
when doing
pd.Series([1.0, np.nan]).replace(np.nan, value=None)
this casts to object, which is inconsistent with what other methods do.
The non special logic would look like:
def replace(self, old, new):
if is_valid_na_for_dtype(new, self.dtype):
new = self. _standardize_fill_value(new)