Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

dataframe lambda elif

lambda x: x*10 if x<2 else (x**2 if x<4 else x+10)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #dataframe #lambda #elif
ADD COMMENT
Topic
Name
4+6 =