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

ENH: stats.describe: add array API support #20667

Merged
merged 4 commits into from
May 14, 2024
Merged

Conversation

mdhaber
Copy link
Contributor

@mdhaber mdhaber commented May 8, 2024

Reference issue

Towards #20544

What does this implement/fix?

Adds array API support to scipy.stats.describe.

Additional information

I think our policy of translating existing tests rather than rewriting is good, but it was pretty cumbersome for this one. Most of what we really need is one big property-based test showing that the results of describe match the results of the functions it calls. Those functions are tested elsewhere.

@mdhaber mdhaber added scipy.stats enhancement A new feature or improvement array types Items related to array API support and input array validation (see gh-18286) labels May 8, 2024
@mdhaber mdhaber requested a review from j-bowhay May 8, 2024 16:14
@mdhaber mdhaber mentioned this pull request May 8, 2024
74 tasks
@mdhaber
Copy link
Contributor Author

mdhaber commented May 8, 2024

CI failure appears to be unrelated.

@mdhaber mdhaber requested a review from j-bowhay May 11, 2024 19:22
@j-bowhay
Copy link
Member

Thanks @mdhaber planning to review this and other from Wednesday onwards

Copy link
Member

@j-bowhay j-bowhay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One minor comment then this is good go

scipy/stats/_stats_py.py Outdated Show resolved Hide resolved
Copy link
Member

@j-bowhay j-bowhay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @mdhaber

@j-bowhay j-bowhay added this to the 1.14.0 milestone May 14, 2024
@j-bowhay j-bowhay merged commit 59f477d into scipy:main May 14, 2024
29 of 31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
array types Items related to array API support and input array validation (see gh-18286) enhancement A new feature or improvement scipy.stats
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants