xarray.Dataset.to_pandas

xarray.Dataset.to_pandas#

Dataset.to_pandas()[source]#

Convert this dataset into a pandas object without changing the number of dimensions.

The type of the returned object depends on the number of Dataset dimensions:

  • 0D -> pandas.Series

  • 1D -> pandas.DataFrame

Only works for Datasets with 1 or fewer dimensions.