d over or equal to k. Otherwise, the value given is 0.</p>
<h2 id="parameters">Parameters</h2>
<p>k (int, default=1, optional):
Threshold to score alternatives with a value of 1.</p>
<h2 id="returns">Returns</h2>
<dl>
<dt><code>pandas.DataFrame:</code></dt>
<dd>Election results using the k-approval method.</dd>
</dl>
<h2 id="references">References</h2></div>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def k_approval(
    df,
    k=1,
    alternativ