title: Extract specific columns from list
body: <p>I have a list that contain the column indexes as follows:</p>
  
  <pre><code>list1 = [0 ,2]
  </code></pre>
  
  <p>Another list of list would contain the file contents of a csv file as follows:</p>
  
  <pre><code>list2=[["abc", 1, "def"], ["ghi", 2, "wxy"]]
  </code></pre>
  
  <p>What can be the best way to create a new list that would only contain the values from <code>list2</code> with the column numbers that are contained in <code>list1</code> i.e.</p>
  
  <pre><code>newList = [["abc", "def"], ["ghi", "wxy"]]
  </code></pre>
  
  <p>I am having a hard time creating the sublists </p>