Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

make a condition statement on column pandas

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