pandas column operation based on condition

welcome to shbcf.ru