Skip to content

BUG: Dataset constructor puts lists in coords rather that data_vars #890

@max-sixty

Description

@max-sixty

I'd expect a to be a data_vars rather than a coord here:

In [9]: xr.Dataset(data_vars={'a': [2,3]}, attrs={'name':'hello'})
Out[9]: 
<xarray.Dataset>
Dimensions:  (a: 2)
Coordinates:
  * a        (a) int64 2 3
Data variables:
    *empty*
Attributes:
    name: hello

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