title: pandas dataframe query by ndarray
body: <p>i have a color dataframe with 4 columns and an array of [3,]</p>
  <pre><code>index = [&quot;color&quot;,&quot;R&quot;, &quot;G&quot;, &quot;B&quot;] # index as csv file definition
  colors_csv = read_csv(csv_path , names=index, header=None)
  colors = [[159 147 134][252 252 252][ 75  81  75][229 195 184]] # sample RGB data
  </code></pre>
  <p>i want to get a new sub dataframe from colors_csv with all the occurrence of <code>colors</code> in R,G,B columns</p>
  <p>by far using <code>.loc</code> property will return me a correct list but consist of concatenated item which i can't iterate through and acquire new dataframe</p>
  <pre><code># query with array of colors 
  for i in range(len(colors)):
      aaaa = ([colors_csv.loc[(colors_csv['R'] == colors[i][0]) &amp; 
          (colors_csv['G'] == colors[i][1]) &amp; (colors_csv['B'] == colors[i][2])]])
      print(aaaa) # how to have all these aaaa thorough loop as one dataframe 
  </code></pre>
  <p>and i guess there could be a one line magic code which can do the job :)</p>
  <p>any help appreciated</p>