I am looking for script which will print salary
, annualsalary
, bonus
of an employee. sal
is the only column available in DF, and other two columns are expressions which will derive from sal
.
annualsalary = 12*sal, bonus=sal*comm/100
i am trying below code
empdf.loc[:,'sal':][['sal'], ['sal']*12, ['sal']*['comm']/100]
can you help me in correcting above code?