Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MAINT: stats.zscore: return correct result when 0th element is masked #19093

Merged
merged 1 commit into from Aug 20, 2023

Conversation

mdhaber
Copy link
Contributor

@mdhaber mdhaber commented Aug 20, 2023

Reference issue

Closes gh-19039

What does this implement/fix?

gh-19039 reported that zscore returned all NaNs when the 0th element of the input array is masked. This attempts to fix the bug.

@mdhaber mdhaber added scipy.stats maintenance Items related to regular maintenance tasks labels Aug 20, 2023
@j-bowhay j-bowhay added this to the 1.12.0 milestone Aug 20, 2023
@j-bowhay j-bowhay merged commit 9d7b6f9 into scipy:main Aug 20, 2023
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Items related to regular maintenance tasks scipy.stats
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: stats.zscore returns all NaN if given masked array with first element masked
2 participants