title: Python Converting a List into an Array
body: <p>I have a list that is 5 rows by 5 columns.</p>
  <p>I am trying to convert this list into a dataframe.</p>
  <p>When I try to do so, it only grabs the first row.</p>
  <p>This failed because I had it set to 5,5:</p>
  <pre><code>df2 = pd.DataFrame(np.array(pdf_read).reshape(5,5),columns=list(&quot;abcde&quot;))
  </code></pre>
  <p>When I switched it to this:</p>
  <pre><code>df2 = pd.DataFrame(np.array(pdf_read).reshape(1,5),columns=list(&quot;abcde&quot;))
  </code></pre>
  <p>It only grabbed the first row.</p>
  <ol>
  <li>Why does it do this?</li>
  <li>Any advice?</li>
  </ol>
  <p>Edit: Added Context</p>
  <p>I am using the <code>tabula</code> module in python to read a PDF file.
  The PDF file results are stored in the variable <code>pdf_read</code>.</p>
  <p>When I do <code>len(pdf_read)</code> it has a length of 1, but when I type
  <code>print(pdf_read)</code> it says it is 5 rows x 5 columns, which is very strange.</p>
  <p>Edit #2:  Datatypes</p>
  <p>I ran the following:</p>
  <pre><code>print(type(pdf_read))
  print(type(pdf_read[0]))
  </code></pre>
  <p>I got <code>&lt;class 'list'&gt;</code> and <code>&lt;class 'pandas.core.frame.DataFrame'&gt;</code> respectively.</p>
  <p>It seems I have a Dataframe inside of a list.</p>
  <p>I ran this code:</p>
  <pre><code>df = pd.DataFrame(
      pdf_read[0],columns=[&quot;column_a&quot;,&quot;column_b&quot;,&quot;column_c&quot;,&quot;column_d&quot;,&quot;column_e&quot;]
      )
  </code></pre>
  <p>This just returns a 5,5 dataframe, but all of the values in each column are NaN.</p>
  <p>Some progress made, but will need to figure out why the values are not populated now.</p>