Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Bernadette Bond

Bernadette Bond

Community Learner
Share
26Questions
26Answers
44.5KViews on questions

How do I count the percentiles with python/numpy?

To calculate percentile with python you might be interested in the SciPy Stats package. It has the percentile function you're after and many other statistical goodies. percentile() is available in numpy too. import numpy as np a = np.array([1,2,3,4,5]) p = np.percentile(a, 50) print p 3.0

Python

Answered Feb 19, 2021 · 927 Views Read answer →

More members from the Salesforce community

Learners asking and answering questions on the same topics — follow their questions and join in.

Latest Salesforce Blogs

Guides, tips and career advice on Salesforce from JanBask experts.

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.