You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
importxarrayxds=xarray.DataArray([1], name="a", dims="a", attrs={"long_name": "Description about data"})
xds.attrs
Output:
{'long_name': 'Description about data'}
xds.to_dataframe().a.attrs
Output:
{}
Describe the solution you'd like
It would be nice if the attributes of the DataArray were preserved in each pandas.Series and the attributes of each Dataset were preserved on the pandas.Dataframe
Additional context
Things to be wary about is that it the pandas documentation says the attrs is experimental.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Output:
Output:
Describe the solution you'd like
It would be nice if the attributes of the DataArray were preserved in each
pandas.Series
and the attributes of eachDataset
were preserved on thepandas.Dataframe
Additional context
Things to be wary about is that it the pandas documentation says the
attrs
is experimental.The text was updated successfully, but these errors were encountered: