Skip to content

DataArray to_dict() without converting with numpy tolist() #1599

@nicain

Description

@nicain

Enhancement:
Following #432 and #917, I need to convert my DataArray to a dictionary, but do not need to fully-jsonize the data. In fact, I would much prefer to get the data without using "decode_numpy_dict_values" to convert numpy to lists using tolist.

Is this feature requested elsewhere, or was it intentionally not considered as a use-case? If not, happy to contribute code.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions