I want to apply a lambda function to a DataFrame column using if...elif...else within the lambda function.
The df and the code are smth. like:
df=pd.
Nest if .. elses:
if .. else
lambda x: x*10 if x<2 else (x**2 if x<4 else x+10)