title: Using scipy.interpolate.RegularGridInterpolator get an error "There are 100 point arrays, but values has 2 dimensions"
body: <p>I know that there is a <a href="https://stackoverflow.com/questions/30056577/correct-usage-of-scipy-interpolate-regulargridinterpolator">post</a> explaining how to do it, but I think I followed the steps outlined in the post and still got a dimensional error.</p>
  
  <p>This is what I tried:</p>
  
  <pre><code>import numpy as np
  from scipy.interpolate import RegularGridInterpolator
  x = np.linspace(0,1,100)
  y = x ** 2
  f = RegularGridInterpolator(x,y)
  </code></pre>
  
  <p>What I did is exactly the same as what the linked post does. However, I'm still getting the same error:</p>
  
  <blockquote>
    <p>There are 100 point arrays, but values has 2 dimensions</p>
  </blockquote>
  
  <p>Is that because I'm dealing with 1 dimensional data? Greatly appreciated if I can get a pointer on this. </p>