Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python pandas if statement

df.loc[df['column name'] condition, 'new column name'] = 'value if condition is met'
Source by datatofish.com #
 
PREVIOUS NEXT
Tagged: #python #pandas #statement
ADD COMMENT
Topic
Name
5+8 =