From 1af12c1ba96ae7aecb228792cc9c07e40554d100 Mon Sep 17 00:00:00 2001 From: Md Javed Date: Thu, 27 Feb 2025 11:08:44 +0530 Subject: [PATCH] Update describe.py Updated the code to exclude 0.5 percentile --- pandas/core/methods/describe.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pandas/core/methods/describe.py b/pandas/core/methods/describe.py index 17d4d38c97f33..5c0cc00874243 100644 --- a/pandas/core/methods/describe.py +++ b/pandas/core/methods/describe.py @@ -354,10 +354,6 @@ def _refine_percentiles( # get them all to be in [0, 1] validate_percentile(percentiles) - # median should always be included - if 0.5 not in percentiles: - percentiles.append(0.5) - percentiles = np.asarray(percentiles) # sort and check for duplicates