Pandas sum across columns and divide each cell from that value February 17, 2023 by Tarik More simply: result.div(result.sum(axis=1), axis=0)