Skip to content

Commit 1af12c1

Browse files
authored
Update describe.py
Updated the code to exclude 0.5 percentile
1 parent f13cd4c commit 1af12c1

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

pandas/core/methods/describe.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -354,10 +354,6 @@ def _refine_percentiles(
354354
# get them all to be in [0, 1]
355355
validate_percentile(percentiles)
356356

357-
# median should always be included
358-
if 0.5 not in percentiles:
359-
percentiles.append(0.5)
360-
361357
percentiles = np.asarray(percentiles)
362358

363359
# sort and check for duplicates

0 commit comments

Comments
 (0)