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

bpo-36018: Address more reviewer feedback #15733

Merged
merged 6 commits into from
Sep 8, 2019

Conversation

rhettinger
Copy link
Contributor

@rhettinger rhettinger commented Sep 8, 2019

  • Decouple the quantiles() function from NormalDist, giving each a cleaner API. The function now has a simpler API because it only takes a data argument instead of data or a distribution. The method now has a better API without a confusing and ignored "method" parameter". The method is also directly discoverable from a NormalDist instance using dir(nd).

  • Added median() and mode() methods, making the Dist API more generic so it can be applied to other, possibly asymmetric distributions.

@miss-islington
Copy link
Contributor

Thanks @rhettinger for the PR 🌮🎉.. I'm working now to backport this PR to: 3.8.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

@miss-islington
Copy link
Contributor

I'm having trouble backporting to 3.8. Reason: 'Error 110 while writing to socket. Connection timed out.'. Please retry by removing and re-adding the needs backport to 3.8 label.

@miss-islington
Copy link
Contributor

Thanks @rhettinger for the PR 🌮🎉.. I'm working now to backport this PR to: 3.8.
🐍🍒⛏🤖

@miss-islington
Copy link
Contributor

Sorry, @rhettinger, I could not cleanly backport this to 3.8 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker 4db25d5c39e369f4b55eab52dc8f87f390233892 3.8

@bedevere-bot
Copy link

GH-15734 is a backport of this pull request to the 3.8 branch.

lisroach pushed a commit to lisroach/cpython that referenced this pull request Sep 10, 2019
DinoV pushed a commit to DinoV/cpython that referenced this pull request Jan 14, 2020
websurfer5 pushed a commit to websurfer5/cpython that referenced this pull request Jul 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants