pyhton pandas dataframe change column values containing text from list i code example
Example 1: replacing values in pandas dataframe
df['coloum'] = df['coloum'].replace(['value_1','valu_2'],'new_value')
Example 2: pandas find fifth caracter in field and change cell based on that number
data['result'] = data['result'].map(lambda x: x.lstrip('+-').rstrip('aAbBcC'))