n class="sd">&quot;&quot;&quot;Returns p-value for shuffle significance test.</span>

<span class="sd">        Performes a local permutation test: x_i values are only permuted with</span>
<span class="sd">        those x_j for which z_i = z_j. Samples are drawn without replacement</span>
<span class="sd">        as much as possible.</span>

<span class="sd">        Parameters</span>
<span class="sd">        ----------</span>
<span class="sd">        array : array-like</span>
<span class="sd">            dat