xarray.Dataset.pr.to_df

xarray.Dataset.pr.to_df#

Dataset.pr.to_df(name: str | None = None) DataFrame#

Convert this dataset into a pandas.DataFrame.

It returns mostly the same as xarray..Dataset.to_dataframe(), but discards additional coordinates instead of including them in the output.

Parameters:
name: str, optional

Name to give to the output columns.

Returns:
df: pandas.DataFrame