DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
set value based on column
df.loc[df['c1'] == 'Value', 'c2'] = 10
PREVIOUS
NEXT
Tagged:
#set
#based
#column
ADD COMMENT
Topic
COMMENT
Name
4+6 =
Submit