ive,
            ballot=ballot,
            delimiter=delimiter,
            voter=voter,
            voters=voters,
            return_alternatives=True,
            transform_kws=transform_kws
        )

    r = m + m.T
    m = m / r

    m = np.where(m &gt; 0.5, 1, np.where(m == 0.5, 0.5, 0))
    m = pd.DataFrame(m, index=unique_alternatives, columns=unique_alternatives)
    m = m.reindex(unique_alternatives, axis=0)
    m = m.reindex(unique_alternatives, axis=1)
    m = m.astype(float)
    np.fill_diago