Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion 2 Lib/statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ def multimode(data):
# options make for easier choices and that external packages can be
# used for anything more advanced.

def quantiles(dist, *, n=4, method='exclusive'):
def quantiles(dist, /, *, n=4, method='exclusive'):
'''Divide *dist* into *n* continuous intervals with equal probability.

Returns a list of (n - 1) cut points separating the intervals.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
The *dist* argument for statistics.quantiles() is now positional only. The
current name doesn't reflect that the argument can be either a dataset or a
distribution. Marking the parameter as positional avoids confusion and
makes it possible to change the name later.
Morty Proxy This is a proxified and sanitized view of the page, visit original site.