xarray.DataArray.to_dataframe

DataArray.to_dataframe(name = None) → pandas.core.frame.DataFrame

Convert this array and its coordinates into a tidy pandas.DataFrame.

The DataFrame is indexed by the Cartesian product of index coordinates (in the form of a pandas.MultiIndex).

Other coordinates are included as columns in the DataFrame.