Skip to content

Commit 7b707f3

Browse files
authored
Updated describe.py
removed the automatic addition of 0.5 when percentiles=[]
1 parent e3e0c82 commit 7b707f3

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

pandas/core/methods/describe.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -352,10 +352,7 @@ def _refine_percentiles(
352352
percentiles = list(percentiles)
353353

354354
# get them all to be in [0, 1]
355-
validate_percentile(percentiles)
356-
357-
if percentiles == []:
358-
percentiles.append(0.5) # By default, if percentiles is empty then append 50th percentile.
355+
validate_percentile(percentiles)
359356

360357
percentiles = np.asarray(percentiles)
361358

0 commit comments

Comments
 (0)