Skip to content

DataArray.interp only works for numeric dtypes #10409

@w-k-jones

Description

@w-k-jones

What is your issue?

Dataset.interp was updated to allow non-numeric dtypes in #5008

However, DataArray.interp still has an outdated check for numeric dtypes, meaning that other dtypes (e.g. datetimes) result in a TypeError:

if self.dtype.kind not in "uifc":

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