title: Creating a Pandas DataFrame from a Numpy array: How do I specify the index column and column headers?
body: <p>I have a Numpy array consisting of a list of lists, representing a two-dimensional array with row labels and column names as shown below:</p>
  
  <pre><code>data = array([['','Col1','Col2'],['Row1',1,2],['Row2',3,4]])
  </code></pre>
  
  <p>I'd like the resulting DataFrame to have Row1 and Row2 as index values, and Col1, Col2 as header values</p>
  
  <p>I can specify the index as follows:</p>
  
  <pre><code>df = pd.DataFrame(data,index=data[:,0]),
  </code></pre>
  
  <p>however I am unsure how to best assign column headers.</p>