title: Convert pandas series into dataframe
body: <p>I have a pandas series that I am trying to convert into a dataframe. The series is 1 col and 30 rows. I want to take every third element starting at index 0 and make it the first col of a new dataframe. Then i want to take the every third element starting at index 1 and make it the second col of a new dataframe.Then I want to take every third element starting at index 2 and make it the third col of a new dataframe.</p>
  
  <p>My pandas series is: </p>
  
  <pre><code>dfTMP
  Out[65]: 
  1     14584416
  2           96
  3         2845
  4     14112187
  5           96
  6         1629
  7     12312225
  8           77
  9         4165
  10    13466612
  11          45
  12        4146
  13    12651673
  14          27
  15        1791
  16    12565436
  17          26
  18        2956
  19    14362965
  20          26
  21        3714
  22    12352162
  23          25
  24        1689
  25    12059502
  26          25
  27        2612
  28    11659730
  29          22
  30        3771
  Name: 4, dtype: int64
  </code></pre>
  
  <p>I tried the following:</p>
  
  <pre><code>    dfNEW = pd.DataFrame(columns = ['appID', 'rel', 'au']) # creates empty dataframe
      dfNEW['appID'] = dfTMP.iloc[0::3] # starting at 0, takes every 3rd element
      dfNEW['rel'] = dfTMP.iloc[1::3] # starting at 1, takes every 3rd element
      dfNEW['au'] = dfTMP.iloc[2::3] # starting at 2, takes every 3rd element
  </code></pre>
  
  <p>This code only creates the first col (or actually the slice of the series i copy first).</p>
  
  <ol>
  <li>Why doesn't the above code work for all cols? I get nan for columns after the first col.</li>
  <li>What is the proper way to do this?</li>
  </ol>
  
  <p>Thank you</p>