ls class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">import numpy as np
import pandas as pd

from comchoice.aggregate.__default_parameters import transform_kws
from comchoice.aggregate.__set_rank import __set_rank
from comchoice.aggregate.pairwise_matrix import pairwise_matrix


def copeland(
    df,
    alternative=&#34;alternative&#34;,
    delimiter=&#34;&gt;&#34;,
    pw_matrix=False,
    ballot=&#34;ballot&#34;,
    show_rank=True,
    voter=&#34;voter&#34;,