title: Once I sample a row from a pandas DataFrame, how can I get a value of one cell?
body: <p>I have a <code>pandas</code> DataFrame and I've successfully sampled a row from it, but one of the problems is that it simply returns another DataFrame. I need to read the returned row and get the value of a particular element of that row.</p>
  
  <p>My <code>DataFrame</code> looks like:</p>
  
  <pre><code>            Date        Open        High         Low       Close   Adj Close     Volume
  0     1993-01-29   43.968700   43.968700   43.750000   43.937500   26.836645    1003200
  1     1993-02-01   43.968700   44.250000   43.968700   44.250000   27.027504     480500
  2     1993-02-02   44.218700   44.375000   44.125000   44.343700   27.084740     201300
  3     1993-02-03   44.406200   44.843700   44.375000   44.812500   27.371080     529400
  4     1993-02-04   44.968700   45.093700   44.468700   45.000000   27.485609     531500
  </code></pre>
  
  <p>I'm able to sample a row with:</p>
  
  <pre><code>start_state = self.market_data.iloc[:-self._num_trading_days_in_episode].sample(1)
  </code></pre>
  
  <p>which ends up looking like:</p>
  
  <pre><code>            Date        Open        High         Low       Close   Adj Close     Volume
  5299  2014-02-13  180.839996  183.199997  180.830002  183.009995  165.017517  100542200
  </code></pre>
  
  <p>Now I need to figure out how to read the value of <code>Open</code> from that row.</p>