Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

drop portion of string in dataframe python

data['result'] = data['result'].map(lambda x: x.lstrip('+-').rstrip('aAbBcC'))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #drop #portion #string #dataframe #python
ADD COMMENT
Topic
Name
6+4 =