I have the below df in pandas:
I need to find the duplicate value, in this case the number 1 in the index 2 and apply the formula ma.trunc(ma.pow(x,2))+1 and after replace the value result in the index 2 where the number 1 was.
Any help will be highly appreciated.
