title: Storing Multiple 2D Arrays in a Single Pandas Dataframe or xray
body: <p>I would like to store multiple 2D ndarrays of different dimensions in a single Pandas dataframe, save that dataframe as a .csv, and load the .csv and retrieve the 2D arrays. I have seen ways of storing a single 2D array and ways of storing multiple 1D arrays, but never multiple 2D arrays. I would accept an answer using the xray package if necessary.</p>
  
  <pre><code>Nx = 10
  Nz = 20
  
  N_one = np.random.rand((Nx, Nz))
  N_two = np.random.rand((Nx+1, Nz+1))
  </code></pre>
  
  <p>I have tried using a dictionary to store the arrays but I get back an error that says that it only supports 1D arrays.</p>
  
  <pre><code>my_dict = {"N_one": N_one, 'N_two': N_two}
  dict_df = pd.DataFrame({key:pd.Series(value) for key,value in my_dict.items()})
  </code></pre>
  
  <p>For a single 2D array, this is how I would store one of the arrays in a dataframe and export it to a .csv</p>
  
  <pre><code>test_df = pd.DataFrame(N_one)
  test_df.to_csv('testdataset.csv',index=False)
  </code></pre>
  
  <p>Then I would read the .csv like this</p>
  
  <pre><code>location_of_dataset = r'C:\Users\User\testdataset.csv'
  new_test_df = pd.read_csv(location_of_dataset)
  </code></pre>