DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
6+4 =
Submit