Remap values in pandas column with a dict preserve NaNs 2025-01-26 (Last Modified: 2025-01-26)Python I person a dictionary which seems similar this di 1 A 2 B I would similar to use it to the col1 file of a dataframe akin to col1 col2 zero w a 1 1 2 2 2 NaN to