<p dir="auto">In an example in the stats.power_divergence docstring, the incorrect use of "method" instead of "lambda_" as option name is used. Fix in pull request <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="33533282" data-permission-text="Title is private" data-url="https://github.com/scipy/scipy/issues/3652" data-hovercard-type="pull_request" data-hovercard-url="/scipy/scipy/pull/3652/hovercard" href="https://github.com/scipy/scipy/pull/3652">#3652</a></p>
<p dir="auto">I have no problems interpolating over small arrays like this.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import numpy as np
from scipy.interpolate import interp2d

x = np.arange(900)
y = np.arange(400)
z = np.random.randint(-1000, high=1000, size=(400, 900))
f = interp2d(x, y, z, kind='linear')
# No errors"><pre class="notranslate"><code class="notranslate">import numpy as np
from scipy.interpolate import interp2d

x = np.arange(900)
y = np.arange(400)
z = np.random.randint(-1000, high=1000, size=(400, 900))
f = interp2d(x, y, z, kind='linear')
# No errors
</code></pre></div>
<p dir="auto">But errors are produced when <code class="notranslate">x</code>, <code class="notranslate">y</code> and <code class="notranslate">z</code> are large, as shown below.</p>
<h3 dir="auto">Reproducing code example:</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import numpy as np
from scipy.interpolate import interp2d

x = np.arange(90000)
y = np.arange(40000)
z = np.random.randint(-1000, high=1000, size=(40000, 90000))
f = interp2d(x, y, z, kind='linear')"><pre class="notranslate"><code class="notranslate">import numpy as np
from scipy.interpolate import interp2d

x = np.arange(90000)
y = np.arange(40000)
z = np.random.randint(-1000, high=1000, size=(40000, 90000))
f = interp2d(x, y, z, kind='linear')
</code></pre></div>
<h3 dir="auto">Error message:</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last):
  File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;
  File &quot;/data/software/Anaconda3-4.3.1-Linux-x86_64/lib/python3.6/site-packages/scipy/interpolate/interpolate.py&quot;, line 225, in __init__
    kx=kx, ky=ky, s=0.0)
dfitpack.error: (len(z)==mx*my) failed for 3rd argument z"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last):
  File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  File "/data/software/Anaconda3-4.3.1-Linux-x86_64/lib/python3.6/site-packages/scipy/interpolate/interpolate.py", line 225, in __init__
    kx=kx, ky=ky, s=0.0)
dfitpack.error: (len(z)==mx*my) failed for 3rd argument z
</code></pre></div>
<h3 dir="auto">Scipy/Numpy/Python version information:</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; import sys, scipy, numpy; print(scipy.__version__, numpy.__version__, sys.version_info)
0.19.1 1.12.1 sys.version_info(major=3, minor=6, micro=0, releaselevel='final', serial=0)"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; import sys, scipy, numpy; print(scipy.__version__, numpy.__version__, sys.version_info)
0.19.1 1.12.1 sys.version_info(major=3, minor=6, micro=0, releaselevel='final', serial=0)
</code></pre></div>