title: Build a dataframe from a filtered list of tuple
body: <p>I have a two lists</p>
  
  <pre><code>kuid -&gt; ['LOdRTFfn', 'Lckq4LkU', 'LcsYHodm']
  </code></pre>
  
  <p>And NN that is a list of tuple where the first element is a list of indexs of kuid and the other element is an array of values </p>
  
  <pre><code>NN -&gt; [([0, 1, 2], [0.0, 1.2, 1.4]), ([1, 0, 2], [0.0, 1.4, 1.4]), ([2, 0, 1], [0.0, 1.1, 1.4])]
  </code></pre>
  
  <p>I'd like to keep only the indexes where the values are less then 1.3 for example:</p>
  
  <pre><code>[([0, 1], [0.0, 1.2]), ([1], [0.0]), ([2, 0], [0.0, 1.1])]
  </code></pre>
  
  <p>and then get the correct value of kuid and build a dataframe:</p>
  
  <pre><code>   kuid      la                    lametric                 
  0  LOdRTFfn  [LOdRTFfn, Lckq4LkU]  [0.0, 1.2] 
  1  Lckq4LkU  [Lckq4LkU]            [0.0]
  2  LcsYHodm  [LcsYHodm, LOdRTFfn]  [0.0, 1.1]
  </code></pre>
  
  <p>Is it possible to do this with list of comprehensions (or other fast solution) avoiding looping? The array could be very large....</p>
  
  <p>Thank you  </p>