Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

comprehension list iloc pandas

df['Flag'] = ["High Bracket" if x > 70 else "Low Bracket" for x in df['prevsalary']]
Source by www.listendata.com #
 
PREVIOUS NEXT
Tagged: #comprehension #list #iloc #pandas
ADD COMMENT
Topic
Name
5+8 =