def normalize_rows(df):
    """Make rows sum to 1.

    :param df: dataframe
    :type df: pandas.DataFrame
    :return: row-normalized dataframe
    :rtype: pandas.DataFrame
    """
    return df.div(df.sum(axis=1), axis=0)