# xarray.Dataset.to_pandas

#### Dataset.to_pandas()[[source]](https://github.com/pydata/xarray/blob/main/xarray/core/dataset.py#L7319-L7338)

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.
