      values=voter
    ).fillna(0)

    ids = set(df[&#34;option_source&#34;]) | set(df[&#34;option_target&#34;])
    m = m.reindex(ids)
    m = m.reindex(ids, axis=1)
    m = m.fillna(0)

    r = m + m.T
    values = m.sum() / r.sum()

    output = pd.DataFrame(values).reset_index().rename(
        columns={&#34;option_target&#34;: alternative, 0: &#34;value&#34;})

    if show_rank:
        output = __set_rank(output)

    return output</code></pre>
</details>
</dd>
</dl>
</section>
<section>
</section>
<