Skip to content

Re-think use of MultiIndex in to_xarray_dataset #7140

Description

@samantha-ho

The to_xarray_dataset method, by default, will create a MultiIndex if there are repeated values along any axis, and will then convert all coords to data_vars. This can cause problems in the expected xarray dataset structure.

We should re-think what cases really need a pandas index or a MultiIndex to minimize these unexpected issues.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions