home / github / issues

Menu
  • Search all tables
  • GraphQL API

issues: 893714363

This data as json

id node_id number title user state locked assignee milestone comments created_at updated_at closed_at author_association active_lock_reason draft pull_request body reactions performed_via_github_app state_reason repo type
893714363 MDU6SXNzdWU4OTM3MTQzNjM= 5327 ENH: Preserve attrs when converting to pandas dataframe 8699967 open 0     0 2021-05-17T21:06:26Z 2021-05-17T21:06:26Z   CONTRIBUTOR      

Is your feature request related to a problem? Please describe. ```python import xarray

xds = xarray.DataArray([1], name="a", dims="a", attrs={"long_name": "Description about data"}) python xds.attrs Output: {'long_name': 'Description about data'} python 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 eachpandas.Seriesand the attributes of eachDatasetwere preserved on thepandas.Dataframe`

Additional context

Things to be wary about is that it the pandas documentation says the attrs is experimental.

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/5327/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
    13221727 issue

Links from other tables

  • 0 rows from issues_id in issues_labels
  • 0 rows from issue in issue_comments
Powered by Datasette · Queries took 0.743ms · About: xarray-datasette