pandas replace values in column based on condition dictionary