check one value in a column and replace with other column python code example
Example: replace values in a column by condition python
df.loc[df['employrate'] > 70, 'employrate'] = 7
df.loc[df['employrate'] > 70, 'employrate'] = 7