title: How to find object on a column using pandas?
body: <p>I've a list that has a key that is a list of objects and i'm trying to filter the first result that matches my condition</p>
  <p>The list;</p>
  <pre><code>contet = [{'name': 1, 'includes': [{'t': 3}, {'t': 2}]},
   {'name': 2, 'includes': [{'t': 1}, {'t': 6}]},
   {'name': 3, 'includes': [{'t': 2}, {'t': 4}]}]
  </code></pre>
  <p>I've manage to explode the list to make it more easier to find:</p>
  <pre><code>pandas.DataFrame(content).set_index('name').explode('includes')
  </code></pre>
  <p>The result is:</p>
  <pre><code>  includes
  name          
  1     {'t': 3}
  1     {'t': 2}
  2     {'t': 1}
  2     {'t': 6}
  3     {'t': 2}
  3     {'t': 4}
  </code></pre>
  <p>How can i find the first occurrence (on includes) for <code>1</code> and <code>2</code> using the key <code>t</code>?</p>
  <p>What i'm trying to avoid is a nested <code>for</code> and <code>ifs</code> like this:</p>
  <pre><code>result_one, result_tow, [], []
  for name, item in frame:  # this will loop through all list
      if item['includes']['t'] == 1:
          result_one.append(item['includes']['t'])
      if item['includes']['t'] == 2:
          result_two.append(item['includes']['t'])
  
  # this will get only the object in `includes`
  one = result_one[0]
  two = result_two[0]
  </code></pre>
  <p>The expected result is to get the first occurrence of <code>1</code> and <code>2</code> on <code>includes</code> list</p>
  <p>one should be equal to:</p>
  <pre><code>{'name': 2, 'includes': [{'t': 1}, {'t': 6}]}
  </code></pre>
  <p>two should be equal to:</p>
  <pre><code>{'name': 1, 'includes': [{'t': 3}, {'t': 2}]}
  </code></pre>