Closed
Description
This would be the complement of the DataArray constructor, converting an xray.DataArray into a 1D series, 2D DataFrame or 3D panel, whichever is appropriate.
to_pandas
would also makes sense for Dataset, if it could convert 0d datasets to series, e.g., pd.Series({k: v.item() for k, v in ds.items()})
(there is currently no direct way to do this), and revert to to_dataframe for higher dimensional input.
- DataArray method
- Dataset method