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