I want to add another column RevisedPrice based on mentioned condition
if Price=1500 then RevisedPrice=Price+(Price*0.15) else if Price=800 then RevisedPrice=Price+(Price*0.10) else RevisedPrice=Price+(Price*0.5)
Below is my code------------
df['RevisedPrice']=[x+(0.15*x) if x==1500 else x+(0.10*x) if x==800 else x+(0.05*x) for x in df['Price']]
i am getting my column value as RevisedPrice=Price+(Price*0.5)