xray.DataArray.to_dataframe

DataArray.to_dataframe()

Convert this array into a pandas.DataFrame.

Non-coordinate variables in this array’s dataset (which include this array’s data) form the columns of the DataFrame. The DataFrame is be indexed by the Cartesian product of the dataset’s coordinates.