SyntaxFix
Write A Post
Hire A Developer
Questions
it appears that this also works
def normalizeRows(M): row_sums = M.sum(axis=1) return M / row_sums