From b867b2ac00006fb0a622f9789163dc4abb15ef16 Mon Sep 17 00:00:00 2001 From: Md Javed Date: Sat, 22 Feb 2025 22:42:29 +0530 Subject: [PATCH] Update describe.py Remove the condition where it checks if 0.5 not in the given value. --- pandas/core/methods/describe.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pandas/core/methods/describe.py b/pandas/core/methods/describe.py index 17d4d38c97f33..174a0f66af740 100644 --- a/pandas/core/methods/describe.py +++ b/pandas/core/methods/describe.py @@ -353,10 +353,7 @@ 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)