Skip to content

Commit 3e08684

Browse files
committed
DOC: add the default median behavior in function docstring
1 parent 2552f9a commit 3e08684

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

pandas/core/generic.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10795,7 +10795,8 @@ def describe(
1079510795
The percentiles to include in the output. All should
1079610796
fall between 0 and 1. The default is
1079710797
``[.25, .5, .75]``, which returns the 25th, 50th, and
10798-
75th percentiles.
10798+
75th percentiles. If a blank list is passed, then returns
10799+
only the 50th percentile value.
1079910800
include : 'all', list-like of dtypes or None (default), optional
1080010801
A white list of data types to include in the result. Ignored
1080110802
for ``Series``. Here are the options:

pandas/core/methods/describe.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ def describe_ndframe(
7474
percentiles : list-like of numbers, optional
7575
The percentiles to include in the output. All should fall between 0 and 1.
7676
The default is ``[.25, .5, .75]``, which returns the 25th, 50th, and
77-
75th percentiles.
77+
75th percentiles.If a blank list is passed, then returns only the
78+
50th percentile value.
7879
7980
Returns
8081
-------

0 commit comments

Comments
 (0)