Skip to content

Add da.Array.nanreductions? #1045

@mrocklin

Description

@mrocklin

NumPy ndarrays do not have nanreduction methods like nanmean

In [1]: import numpy as np

In [2]: np.nanmean
Out[2]: <function numpy.lib.nanfunctions.nanmean>

In [3]: np.ndarray.nanmean
AttributeError: type object 'numpy.ndarray' has no attribute 'nanmean'

Dask.array follows this example and has nanreduction functions, but not methods.

This is sometimes confusing. Do we want to add nanreduction methods to the Array class? Is there a reason that these aren't present in NumPy?

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