title: How to draw a contour plot from a dataframe
body: <p>I want to draw a contour plot using table data.
  I have  2 variables and response (3 columns).
  I dont understand how to build this plot using it. I tried code below. But I had a next mistake: Input z must be 2D, not 1D.</p>
  <pre><code>feature_x = data.factor1
  feature_y = data.factor2
    
  # Creating 2-D grid of features
  [X, Y] = np.meshgrid(feature_x, feature_y)
    
  fig, ax = plt.subplots(1, 1)
    
  Z = data.response
    
  # plots filled contour plot
  ax.contourf(X, Y, Z)
    
  ax.set_title('Filled Contour Plot')
  ax.set_xlabel('feature_x')
  ax.set_ylabel('feature_y')
    
  plt.show()
  </code></pre>
  <p>Data
  <a href="https://i.stack.imgur.com/B1ALa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/B1ALa.png" alt="enter image description here" /></a></p>
  <p><a href="https://i.stack.imgur.com/wluBr.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wluBr.jpg" alt="enter image description here" /></a></p>