title: How to store ndarray in csv format each array in a different colums using pandas?
body: <p>I have been looking this up but all the answers I find is for 2D array. Lets say I have the following not working code</p>
  <pre><code>import numpy as np 
  import pandas as pd 
  
  my_list=[]
  def run:
      for i in range(500): 
         a = raw_data_get() # this brings in raw data as tuples such as (array([1.34, 1.3, 9.1]), array([3.2, 8.1, 7.3]))
         my_list.append(a)
      for i in range(len(my_list)):
         df = pd.DataFrame(my_list[i]).T
      df.to_csv('my_signals.csv', index=False)
  </code></pre>
  <p>and I want to store each array in a separate column in csv format. The output should look like this:</p>
  <pre><code>col1  col2  col3  col4
  1       2     3     4
  2       2     3     4
  3       2     3     4
  4       2     3     4
  </code></pre>
  <p>How can I solve the same problem if I have 500 arrays not just four? so I can have several columns in csv?</p>
  <pre><code>col1  col2  col3  col4  .... etc
  1       2     3     4
  2       2     3     4
  3       2     3     4
  4       2     3     4
  </code></pre>
  <p>I am using python3.7</p>