-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
bugSomething isn't workingSomething isn't working
Description
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
Labels
bugSomething isn't workingSomething isn't working