title: Python set to array and dataframe
body: <p><strong>Interpretation by a friendly editor:</strong></p>
  
  <p>I have data in the form of a set.</p>
  
  <pre><code>import numpy as n , pandas as p
  s={12,34,78,100}
  print(n.array(s))
  print(p.DataFrame(s))
  </code></pre>
  
  <p>The above code converts the set without a problem into a numpy array.
  But when I try to create a DataFrame from it I get the following error:</p>
  
  <blockquote>
    <p>ValueError: DataFrame constructor not properly called!</p>
  </blockquote>
  
  <p>So is there any way to convert a python set/nested set into a numpy array/dictionary so I can create a DataFrame from it?</p>
  
  <hr>
  
  <p><strong>Original Question:</strong></p>
  
  <p>I have a data in form of set .
  Code </p>
  
  <pre><code> import numpy as n , pandas as p
   s={12,34,78,100}
   print(n.array(s))
   print(p.DataFrame(s))
  </code></pre>
  
  <p>The above code returns same set for numpyarray  and DataFrame constructor not called at o/p . So is  there any way  to convert python set , nested set into numpy array and dictionary ??</p>