title: Pandas: DataFrame row into variables
body: <p>I have the following <code>DataFrame</code>:</p>
  
  <pre><code>x = DataFrame({
          "x" : [1,2,3],
          "y" : [4,5,6],
          "z" : [7,8,9]
      })
  </code></pre>
  
  <p>I want to retrieve the row where <code>x</code> equals <code>1</code>, and store the <code>y</code> and <code>z</code> values there in variables with the same name.</p>
  
  <p>I'm able to do this, but I had to resort to <code>itertuples()</code> and a bunch of other steps:</p>
  
  <pre><code>_, y, z = next(x.loc[x.x == 1, ["y", "z"]].itertuples())
  </code></pre>
  
  <p>Is there a cleaner/preferred way of doing this?  <a href="https://stackoverflow.com/a/18996948/717481">This answer to a related question</a> would suggest no, but I just wanted to check.</p>