Skip to content

Add thread-safe copy() #10385

Open
Open
@alippai

Description

@alippai

Is your feature request related to a problem?

A new option for Dataset and DataArray .copy() function. Something between deep=True and deep=False.
#9836 here it was identified that everything in xarray is threadsafe, but the PandasIndex is not.

A shallow copy of the data, variables, coordinates + deep copy of the index is required for the fastest and most efficient thread-safe copy

Describe the solution you'd like

Add .copy(deep='threadsafe') or similar.

Describe alternatives you've considered

No response

Additional context

No response

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