pandas find fifth caracter in field and change cell based on that number
data['result'] = data['result'].map(lambda x: x.lstrip('+-').rstrip('aAbBcC'))
Are there any code examples left?
New code examples in category Python
data['result'] = data['result'].map(lambda x: x.lstrip('+-').rstrip('aAbBcC'))