DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
rename rows pandas based on condiions
df.loc[(df.Event == 'Dance'),'Event']='Hip-Hop' df
Source by kanoki.org #
PREVIOUS
NEXT
Tagged:
#rename
#rows
#pandas
#based
#condiions
ADD COMMENT
Topic
COMMENT
Name
7+7 =
Submit