title: Is a set converted to numpy array?
body: <p>I am creating a ndarray using:</p>
  
  <pre class="lang-py prettyprint-override"><code>import numpy as np
  
  arr=np.array({1,2})
  print(arr, type(arr))
  </code></pre>
  
  <p>which outputs </p>
  
  <pre class="lang-py prettyprint-override"><code>{1, 2} &lt;class 'numpy.ndarray'&gt;
  </code></pre>
  
  <p>If its type is numpy.ndarray, then o/p must be in square brackets like [1,2]?
  Thanks</p>