File tree 2 files changed +5
-8
lines changed
2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -10818,12 +10818,8 @@ def describe(
10818
10818
----------
10819
10819
percentiles : list-like of numbers, optional
10820
10820
The percentiles to include in the output. All should
10821
- fall between 0 and 1. Here are the options:
10822
-
10823
- - A list-like of numbers : To include the percentiles listed. If
10824
- that list is empty, no percentiles will be returned.
10825
- - None (default) : To include the default percentiles, which are the
10826
- 25th, 50th, and 75th ones.
10821
+ fall between 0 and 1. The default, ``None``, will automatically
10822
+ return the 25th, 50th, and 75th percentiles.
10827
10823
include : 'all', list-like of dtypes or None (default), optional
10828
10824
A white list of data types to include in the result. Ignored
10829
10825
for ``Series``. Here are the options:
Original file line number Diff line number Diff line change @@ -431,7 +431,7 @@ def test_refine_percentiles(self, percentiles):
431
431
if percentiles is None :
432
432
percentiles = [0.25 , 0.5 , 0.75 ]
433
433
434
- expected = Series (
434
+ expected = DataFrame (
435
435
{
436
436
"count" : len (df .a ),
437
437
"mean" : df .a .mean (),
@@ -440,6 +440,7 @@ def test_refine_percentiles(self, percentiles):
440
440
** {f"{ p :.0%} " : df .a .quantile (p ) for p in percentiles },
441
441
"max" : df .a .max (),
442
442
},
443
- ).to_frame (name = "a" )
443
+ index = ["a" ],
444
+ ).T
444
445
445
446
tm .assert_frame_equal (result , expected )
You can’t perform that action at this time.
0 commit comments