Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas find fifth caracter in field and change cell based on that number

data['result'] = data['result'].map(lambda x: x.lstrip('+-').rstrip('aAbBcC'))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pandas #find #caracter #field #change #cell #based #number
ADD COMMENT
Topic
Name
4+7 =