Skip to content

Dealing with missing values #44

@Oisin-M

Description

@Oisin-M

What happened?

We have some inconsistent behaviour when dealing with nan inputs that I think we need to try and standardise. Some functions just ignore or impute nans (e.g. see #43) whilst some others do not e.g.

arr1 = np.random.rand(500)
arr1[0] = np.nan
arr2 = np.random.rand(500)
pearson(arr1, arr2)
>> np.float64(nan)

I think this is confusing and would like a consistent treatment across functions. What should we be doing with missing values?

What are the steps to reproduce the bug?

Version

Platform (OS and architecture)

Relevant log output

Accompanying data

No response

Organisation

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions