title: How to convert the "rows" of a pandas Series into columns of a DataFrame?
body: <p>I have the following pandas Series, <code>ser1</code> of shape (100,). </p>
  
  <pre><code>import pandas as pd
  ser1 = pd.Series(...)
  print(len(ser1)) 
  ##  prints (100,)
  </code></pre>
  
  <p>The length of each ndarray within this Series is length 150000, where each element is a character. </p>
  
  <pre><code>len(print(ser1[0]))
  ##  prints 150000
  
  ser1.head()
  sample1       xhtrcuviuvjhgfsrexvuvhfgshgckgvghfsgfdsdsg...
  sample2       jhkjhgkjvkjgfjyqerwqrbxcvmkoshfkhgjknlkdfk...
  sample3       sdfgfdxcvybnjbvtcyuikjhbgfdftgyhujhghjkhjn...
  sample4       bbbbbbadfashdwkjhhguhoadfopnpbfjhsaqeqjtyi...
  sample5       gfjyqedxcvrexvuvcvmkoshdftgyhujhgcvmkoshfk...
  dtype: object
  </code></pre>
  
  <p>I would like to covert this pandas Series into a pandas DataFrame such that each element of this pandas Series "row" is a DataFrame column. That is, each element of that Series array would be an individual column. In this case, <code>ser1</code> would have 150000 columns. </p>
  
  <pre><code>print(type(df_ser1)) # DataFrame of ser1
  ## outputs &lt;class 'pandas.core.frame.DataFrame'&gt;
  df_ser1.head()
       samples    char1    char2    char3    char4    char5    char6
  0    sample1    x        h        t        r        c        u
  1    sample2    j        h        k        j        h        g
  2    sample3    s        d        f        g        f        d
  3    sample4    b        b        b        b        b        b
  ........
  </code></pre>
  
  <p>How would one convert a pandas Series to a DataFrame in this way? </p>
  
  <p>The most obvious idea would be to do </p>
  
  <pre><code>df_ser = ser1.to_frame
  </code></pre>
  
  <p>but this does not separate elements into individual Dataframe columns:</p>
  
  <pre><code>df_ser = ser1.to_frame
  df_ser.head()
                                                         0
  sample1       xhtrcuviuvjhgfsrexvuvhfgshgckgvghfsgfdsdsg...
  sample2       jhkjhgkjvkjgfjyqerwqrbxcvmkoshfkhgjknlkdfk...
  sample3       sdfgfdxcvybnjbvtcyuikjhbgfdftgyhujhghjkhjn...
  ......
  </code></pre>
  
  <p>Somehow, one would iterate though each element of the "Series row" and create a column, though I'm not sure how computationally feasible that is. (It's not very pythonic.)</p>
  
  <p>How would one do this? </p>