pandas column operation based on condition

join shbcf.ru