tegge-classroom / STAT2984-2018

STAT 2984: Statistical Programming I - Spring 2018
1 stars 13 forks source link

Assignment 3 Question 10 #24

Open mbecker3 opened 6 years ago

mbecker3 commented 6 years ago

I used a = np.array(data) p = np.percentile(a,)

which ended up printing a large list of numbers, when all I need is four percentiles, so I'm confused on what to do.

ategge commented 6 years ago

The documentation for percentiles in numpy states that the function requires two paramaters: (1) the data, and (2) a list of the values of the percentiles of interest.

jthough7 commented 6 years ago

I was doing 9 which is similar and when I did it I had q1 equaling the np.percentile(a,25) and then I printed q1 which gave me a single number. So try putting a (a,20) and you should get one number.