xarray.Dataset.pr.to_interchange_format

Dataset.pr.to_interchange_format(time_format: str = '%Y') DataFrame

Convert dataset to the interchange format.

The interchange format consists of a pandas DataFrame in wide format with the meta data dictionary stored in the DataFrame’s attrs dict.

Parameters:
time_format: str, optional

string for strftime formatting of the “time” axis.

Returns:
df: pd.DataFrame