DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
pandas replace word begins with contains
df.sport = df.sport.apply(lambda x: 'ball sport' if 'ball' in x else x)
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#pandas
#replace
#word
#begins
ADD COMMENT
Topic
COMMENT
Name
5+4 =
Submit