.replace() with a dict about 60x slower than .map().fillna() #12657
Labels
Duplicate Report
Duplicate issue or pull request
Missing-data
np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate
(pandas versions: 0.17.0, 0.18.0)
It seems that
Series.replace
is orders of magnitude slower thanSeries.map
when called with a dict, and consumes enormous amounts of RAM:Memory stats not provided here but I've seen it explode (e.g. use 60+ GB RAM).
An old issue, not sure if related: #6697.
The text was updated successfully, but these errors were encountered: