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.kstat/kstatvar: add native support for axis #20651

Merged
merged 4 commits into from
May 6, 2024

Conversation

mdhaber
Copy link
Contributor

@mdhaber mdhaber commented May 6, 2024

Reference issue

Toward gh-20544

What does this implement/fix?

gh-20544 listed kstat/kstatvar as functions that were ready for array API conversion, but they weren't quite ready, since their axis argument is implemented with a Python loop. This PR adds native axis support and strengthens tests.

Additional information

These functions could use input validation, and the n argument should probably be renamed to order to match moment.

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.

LGTM subject to CI and a minor doc tweak

scipy/stats/_morestats.py Outdated Show resolved Hide resolved
scipy/stats/_morestats.py Outdated Show resolved Hide resolved
[skip CI]

Co-authored-by: Jake Bowhay <60778417+j-bowhay@users.noreply.github.com>
@mdhaber
Copy link
Contributor Author

mdhaber commented May 6, 2024

Thanks @j-bowhay. Committed those suggestions.

@j-bowhay j-bowhay merged commit f89e7ed into scipy:main May 6, 2024
25 checks passed
@j-bowhay j-bowhay added this to the 1.14.0 milestone May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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