Skip to content

BUG: quantile should error when weights are all zeros#28595

Merged
charris merged 23 commits intonumpy:mainfrom
Tontonio3:quantile-warn
Nov 30, 2025
Merged

BUG: quantile should error when weights are all zeros#28595
charris merged 23 commits intonumpy:mainfrom
Tontonio3:quantile-warn

Conversation

@Tontonio3
Copy link
Copy Markdown
Contributor

Fixes issue #28589

np.quantile now raises errors if:

  • All weights are zero
  • At least one weight is np.nan
  • At least one weight is np.inf

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Development

Successfully merging this pull request may close these issues.

8 participants