title: How to print array data that I just compressed using numpy zip()
body: <p>I am trying to figure out how to see the the data from the zipped content.
  The scenario is as follows in the code:</p>
  
  <pre><code>import numpy as np
  x=[1,2,3]
  y=[4,5,6]
  z=[7,8,9]
  data=np.array(zip(x,y,z))
  print (data)
  </code></pre>
  
  <p>output</p>
  
  <pre><code>array(&lt;zip object at 0x00000166568AE648&gt;, dtype=object)
  </code></pre>
  
  <p>but i want to see the data inside the zip so when i say </p>
  
  <pre><code>print(data)
  </code></pre>
  
  <p>it shows</p>
  
  <pre><code>&lt;zip object at 0x00000166568AE648&gt;
  </code></pre>
  
  <hr>
  
  <p>now people are discussing in similar posts about <strong>D_stacking</strong> like..</p>
  
  <pre><code>np.dstack(data)
  </code></pre>
  
  <p>but it shows the output as a error</p>
  
  <pre><code>---------------------------------------------------------------------------
  TypeError                                 Traceback (most recent call last)
  &lt;ipython-input-20-2126862e2c70&gt; in &lt;module&gt;()
  ----&gt; 1 np.dstack(data)
  
  C:\ProgramData\Anaconda3\lib\site-packages\numpy\lib\shape_base.py in dstack(tup)
      407 
      408     """
  --&gt; 409     return _nx.concatenate([atleast_3d(_m) for _m in tup], 2)
      410 
      411 def _replace_zero_by_x_arrays(sub_arys):
  
  TypeError: iteration over a 0-d array
  </code></pre>
  
  <p>0 dimension..?
  what does this mean..?
  it says the same for other possible solution i found as <strong>Decompressing zip</strong></p>
  
  <pre><code>a,b,c=zip(*data)
  print('x=',a)
  print('y=',b)
  print('z=',c)
  </code></pre>
  
  <p><strong>error</strong></p>
  
  <pre><code>---------------------------------------------------------------------------
  TypeError                                 Traceback (most recent call last)
  &lt;ipython-input-41-6ad67a911952&gt; in &lt;module&gt;()
  ----&gt; 1 a,b,c=zip(*data)
        2 print('x=',a)
        3 print('y=',b)
        4 print('z=',c)
  
  TypeError: iteration over a 0-d array
  </code></pre>
  
  <p>then i went thrugh <code>zip()</code> function in programiz.com there i found <code>set()</code> function..</p>
  
  <pre><code>result = set(data)
  print (result)
  </code></pre>
  
  <p><strong>error</strong></p>
  
  <pre><code>---------------------------------------------------------------------------
  TypeError                                 Traceback (most recent call last)
  &lt;ipython-input-39-2e1af52686b4&gt; in &lt;module&gt;()
  ----&gt; 1 result = set(data)
        2 print (result)
  
  TypeError: iteration over a 0-d array
  </code></pre>
  
  <hr>
  
  <p>i believe I'm doing something bad in basic x,y,z data.. but my knowledge is limited to the level of whatever you think about me.. </p>
  
  <p>could you please help me with things I'm missing and also explain that lil important point i missed.</p>
  
  <hr>
  
  <p>When I search for <code>TypeError: iteration over a 0-d array</code></p>
  
  <p>people talk about <code>json</code> which I have <strong>0</strong> idea other then FC3, sorry for that.</p>