title: How to insert a multidimensional numpy array to pandas column?
body: <p>I have some numpy array, whose number of rows (axis=0) is the same as a pandas dataframe's number of rows.</p>
  
  <p>I want to create a new column in the dataframe, for which each entry would be a numpy array of a lesser dimension.</p>
  
  <p>Code:</p>
  
  <pre><code>    some_df = pd.DataFrame(columns=['A'])
      for i in range(10):
          some_df.loc[i] = [np.random.rand(4, 6, 8)
  
      data = np.stack(some_df['A'].values)  #shape (10, 4, 6, 8)
      processed = np.max(data, axis=1)  # shape (10, 6, 8)
  
      some_df['B'] = processed  # This fails
  </code></pre>
  
  <p>I want the new column <code>'B'</code> to contain numpy arrays of shape <code>(6, 8)</code></p>
  
  <p>How can this be done?</p>