Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update describe.py #60986

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Update describe.py #60986

wants to merge 1 commit into from

Conversation

mdjaved24
Copy link

This PR fixes an issue where passing a single value to .describe(percentiles=[...]) would incorrectly include the 50th percentile (median) in the output. The fix ensures that only the explicitly requested percentiles are returned.

Changes:
Modified the .describe() method to avoid adding the 50th percentile by default when a custom percentiles list is provided.

Closes: #60550

Remove the condition where it checks if 0.5 not in the given value.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ENH: Passing a single value to .describe(percentiles = [0.25]) returns 25th- and 50th-percentile
1 participant